Share 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
'Usage
Dim instance As ShapeContainer 
Dim value As DockStyle 

value = instance.Dock

instance.Dock = value
public override DockStyle Dock { get; set; }
public:
virtual property DockStyle Dock {
    DockStyle get () override;
    void set (DockStyle value) override;
}
public override function get Dock () : DockStyle 
public 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

ShapeContainer Members

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)