 Syntax
Syntax
| Visual Basic (Declaration) |  | 
|---|
| <RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<LocalizableAttribute(True)>
<SRCategoryAttribute("Layout")>
<DefaultValueAttribute()>
<SRDescriptionAttribute("Defines the edges of the container to which a certain control is bound. When a control is anchored to an edge, the distance between the control's closest edge and the specified edge will remain constant. ")>
Public Overridable Property Anchor As AnchorStyles | 
| C# |  | 
|---|
| [RefreshPropertiesAttribute(RefreshProperties.Repaint)]
[LocalizableAttribute(true)]
[SRCategoryAttribute("Layout")]
[DefaultValueAttribute()]
[SRDescriptionAttribute("Defines the edges of the container to which a certain control is bound. When a control is anchored to an edge, the distance between the control's closest edge and the specified edge will remain constant. ")]
public virtual AnchorStyles Anchor {get; set;} | 
 Requirements
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 See Also
See Also