Gets or sets which edges of the control are anchored to the edges of its container.


Anchor [ = Long ]

Property Value

A bitwise combination of the AnchorStyles values. The default is Top and Left.


A control can be anchored to one or more edges of its parent container. Anchoring a control to its parent ensures that the anchored edges remain in the same position relative to the edges of the parent container when the parent container is resized. For example, if you have a Form with a Button whose Anchor property value is set to Top and Bottom, the Button is stretched to maintain the anchored distance to the top and bottom edges of the Form as the Height of the Form is increased.

The CHM file was converted to HTML by chm2web software.