LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Anchor Property
See Also 
Leadtools.Medical3D Namespace > Medical3DControl Class : Anchor Property



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

Syntax

Visual Basic (Declaration) 
<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. ")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<LocalizableAttribute(True)>
<DefaultValueAttribute()>
<SRCategoryAttribute("Layout")>
Public Overridable Property Anchor As AnchorStyles
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim value As AnchorStyles
 
instance.Anchor = value
 
value = instance.Anchor
C# 
[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. ")]
[RefreshPropertiesAttribute(RefreshProperties.Repaint)]
[LocalizableAttribute(true)]
[DefaultValueAttribute()]
[SRCategoryAttribute("Layout")]
public virtual AnchorStyles Anchor {get; set;}
C++/CLI 
[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. ")]
[RefreshPropertiesAttribute(RefreshProperties.Repaint)]
[LocalizableAttribute(true)]
[DefaultValueAttribute()]
[SRCategoryAttribute("Layout")]
public:
virtual property AnchorStyles Anchor {
   AnchorStyles get();
   void set (    AnchorStyles value);
}

Property Value

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features