Compartilhar via


ShapeContainer.Dock Property

Gets or sets which control borders are docked to the parent control and determines how a control is resized when its parent is resized.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'Declaration
Public Overrides Property Dock As DockStyle
public override DockStyle Dock { get; set; }
public:
virtual property DockStyle Dock {
    DockStyle get () override;
    void set (DockStyle value) override;
}
abstract Dock : DockStyle with get, set 
override Dock : DockStyle with get, set
override function get Dock () : DockStyle 
override function set Dock (value : DockStyle)

Property Value

Type: System.Windows.Forms.DockStyle
One of the DockStyle values. The default is Fill.

Remarks

For the ShapeContainer, the Dock property is always set to Fill. Attempting to set this property does nothing.

.NET Framework Security

See Also

Reference

ShapeContainer Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

Introduction to the Line and Shape Controls (Visual Studio)

How to: Draw Lines with the LineShape Control (Visual Studio)

How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)