UITypeEditorEditStyle UITypeEditorEditStyle UITypeEditorEditStyle UITypeEditorEditStyle Enum

定义

指定指示 UITypeEditor 的值编辑样式的标识符。Specifies identifiers that indicate the value editing style of a UITypeEditor.

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

字段

DropDown DropDown DropDown DropDown 3

显示一个下拉箭头按钮,并在下拉对话框中承载用户界面 (UI)。Displays a drop-down arrow button and hosts the user interface (UI) in a drop-down dialog box.

Modal Modal Modal Modal 2

显示一个省略号 (...) 按钮,该按钮可启动模式对话框,对于这种对话框,用户必须输入数据才能继续程序;该按钮也可以启动非模式对话框,这种对话框停留在屏幕上,可供用户随时使用,但它允许用户执行其他活动。Displays an ellipsis (...) button to start a modal dialog box, which requires user input before continuing a program, or a modeless dialog box, which stays on the screen and is available for use at any time but permits other user activities.

None None None None 1

不提供任何交互用户界面 (UI) 组件。Provides no interactive user interface (UI) component.

示例

下面的代码示例演示如何使用UITypeEditorEditStyle指定自定义UITypeEditor的样式。The following code example demonstrates how to use UITypeEditorEditStyle to specify the style of a custom UITypeEditor. 此代码示例是为DocumentDesigner类提供的更大示例的一部分。This code example is part of a larger example provided for the DocumentDesigner class.

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

适用于

另请参阅