UITypeEditorEditStyle 枚举

定义

指定指示 UITypeEditor 的值编辑样式的标识符。

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

字段

DropDown 3

显示一个下拉箭头按钮,并在下拉对话框中承载用户界面 (UI)。

Modal 2

显示一个省略号 (...) 按钮,该按钮可启动模式对话框,对于这种对话框,用户必须输入数据才能继续程序;该按钮也可以启动非模式对话框,这种对话框停留在屏幕上,可供用户随时使用,但它允许用户执行其他活动。

None 1

不提供任何交互用户界面 (UI) 组件。

示例

下面的代码示例演示如何用于 UITypeEditorEditStyle 指定自定义 UITypeEditor的样式。 此代码示例是为类提供的大型示例的 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

适用于

另请参阅