UITypeEditorEditStyle 列挙型

定義

UITypeEditor の値編集スタイルを示す識別子を指定します。

public enum class UITypeEditorEditStyle
public enum UITypeEditorEditStyle
type UITypeEditorEditStyle = 
Public Enum UITypeEditorEditStyle
継承
UITypeEditorEditStyle

フィールド

DropDown 3

ドロップダウン矢印ボタンを表示し、ドロップダウン ダイアログ ボックスのユーザー インターフェイス (UI) をホストします。

Modal 2

必要に応じてモーダルまたはモードレスのダイアログ ボックスを開く省略記号 (...) ボタンを表示します。ユーザーからの入力がないと、プログラムを続行できないようにする場合は、モーダル ダイアログ ボックスを使用します。また、画面上にダイアログ ボックスを表示させたまま、ユーザーに他の操作を許容する場合は、モードレス ダイアログ ボックスを使用します。

None 1

対話形式のユーザー インターフェイス (UI) コンポーネントを提供しません。

次のコード例は、カスタムUITypeEditorのスタイルを指定するために使用UITypeEditorEditStyleする方法を示しています。 このコード例は、DocumentDesigner クラスのために提供されている大規模な例の一部です。

public override UITypeEditorEditStyle GetEditStyle(
System.ComponentModel.ITypeDescriptorContext context)
{
    return UITypeEditorEditStyle.DropDown;
}
Public Overrides Function GetEditStyle( _
ByVal context As System.ComponentModel.ITypeDescriptorContext) _
As UITypeEditorEditStyle
    Return UITypeEditorEditStyle.DropDown
End Function

適用対象

こちらもご覧ください