Specifies the default docking behavior for a control.
<AttributeUsageAttribute(AttributeTargets.Class)> _ Public NotInheritable Class DockingAttribute _ Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)] public ref class DockingAttribute sealed : public Attribute
[<Sealed>] [<AttributeUsageAttribute(AttributeTargets.Class)>] type DockingAttribute = class inherit Attribute end
The DockingAttribute type exposes the following members.
You can create new controls in Windows Forms derived either from an existing control or from UserControl. Use this attribute on new controls to describe how the control should dock by default when placed on a form.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2