System.Windows.Forms.ToolStrip.Anchor Property

Gets or sets the edges of the container to which a System.Windows.Forms.ToolStrip is bound and determines how a System.Windows.Forms.ToolStrip is resized with its parent.

Syntax

public override AnchorStyles Anchor { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ToolStrip.Anchor property to define how a System.Windows.Forms.ToolStrip is automatically resized as its parent control is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the same position relative to the edges of the parent control when the parent control is resized.

Note:

The ToolStrip.Anchor and ToolStrip.Dock properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0