AnchorEditor Class
.NET Framework 3.0
Provides a user interface for configuring an Anchor property.
Namespace: System.Windows.Forms.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
The AnchorEditor provides a design-time user interface for configuring an Anchor property. An Anchor property is typically used to determine which sides of the container a control is bound to. This class provides a drop-down graphical control that allows the user to specify which sides of the container to anchor the control to.
The following code example uses an EditorAttribute to associate the AnchorEditor with a property.
<EditorAttribute(GetType(System.Windows.Forms.Design.AnchorEditor), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property testAnchor() As System.Windows.Forms.AnchorStyles Get Return anchor End Get Set anchor = value End Set End Property Private anchor As AnchorStyles
/** @attribute EditorAttribute(System.Windows.Forms.Design.AnchorEditor.
class, System.Drawing.Design.UITypeEditor.class)
*/
/** @property
*/
public System.Windows.Forms.AnchorStyles get_TestAnchor()
{
return anchor;
} //get_TestAnchor
/** @property
*/
public void set_TestAnchor(System.Windows.Forms.AnchorStyles value)
{
anchor = value;
} //set_TestAnchor
private AnchorStyles anchor;
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: