Visual Basic (Declaration) | |
---|---|
<DefaultValueAttribute()> <RefreshPropertiesAttribute(RefreshProperties.Repaint)> <SRDescriptionAttribute("Defines which borders of the control are bound to the container. ")> <LocalizableAttribute(True)> <SRCategoryAttribute("Layout")> Public Overridable Property Dock As DockStyle |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Medical3DControl Dim value As DockStyle instance.Dock = value value = instance.Dock |
C# | |
---|---|
[DefaultValueAttribute()] [RefreshPropertiesAttribute(RefreshProperties.Repaint)] [SRDescriptionAttribute("Defines which borders of the control are bound to the container. ")] [LocalizableAttribute(true)] [SRCategoryAttribute("Layout")] public virtual DockStyle Dock {get; set;} |
C++/CLI | |
---|---|
[DefaultValueAttribute()] [RefreshPropertiesAttribute(RefreshProperties.Repaint)] [SRDescriptionAttribute("Defines which borders of the control are bound to the container. ")] [LocalizableAttribute(true)] [SRCategoryAttribute("Layout")] public: virtual property DockStyle Dock { DockStyle get(); void set ( DockStyle value); } |
Property Value
One of the System.Windows.Forms.DockStyle values. The default is System.Windows.Forms.DockStyle.None.Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | The value assigned is not one of the values. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7