Anchor プロパティを構成するためのユーザー インターフェイスを提供します。
この型のすべてのメンバの一覧については、AnchorEditor メンバ を参照してください。
System.Object
System.Drawing.Design.UITypeEditor
System.Windows.Forms.Design.AnchorEditor
NotInheritable Public Class AnchorEditor
Inherits UITypeEditor
[C#]
public sealed class AnchorEditor : UITypeEditor
[C++]
public __gc __sealed class AnchorEditor : public UITypeEditor
[JScript]
public class AnchorEditor extends UITypeEditor
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
AnchorEditor は、 Anchor プロパティを構成するためのデザイン時ユーザー インターフェイスを提供します。 Anchor プロパティは、通常、コンテナのどちらの側にコントロールがバインドされているかを確認するために使用します。このクラスは、ユーザーがコンテナのどちらの側にコントロールを固定するかを指定するための、ドロップダウン グラフィカル コントロールを提供します。
使用例
[Visual Basic, C#, C++] EditorAttribute を使用して、 System.Drawing.AnchorEditor とプロパティを関連付けるコード例を次に示します。
<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
[C#]
[EditorAttribute(typeof(System.Windows.Forms.Design.AnchorEditor), typeof(System.Drawing.Design.UITypeEditor))]
public System.Windows.Forms.AnchorStyles testAnchor
{
get
{
return anchor;
}
set
{
anchor = value;
}
}
private AnchorStyles anchor;
[C++]
public:
[EditorAttribute(__typeof(System::Windows::Forms::Design::AnchorEditor),
__typeof(System::Drawing::Design::UITypeEditor))]
__property System::Windows::Forms::AnchorStyles get_testAnchor() {
return anchor;
}
[EditorAttribute(__typeof(System::Windows::Forms::Design::AnchorEditor),
__typeof(System::Drawing::Design::UITypeEditor))]
__property void set_testAnchor(System::Windows::Forms::AnchorStyles value) {
anchor = value;
}
private:
AnchorStyles anchor;
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
名前空間: System.Windows.Forms.Design
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: System.Design (System.Design.dll 内)
参照
AnchorEditor メンバ | System.Windows.Forms.Design 名前空間 | Anchor