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

public override DockStyle Dock { get; set; }
public:
property DockStyle Dock {
    virtual DockStyle get() override;
    virtual void set(DockStyle value) override;
}
override Dock : DockStyle with get, set
Public Overrides Property Dock As 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.

See Also

ShapeContainer Class
Microsoft.VisualBasic.PowerPacks Namespace
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)

Return to top