为表示和编辑域枚举提供用户界面 (UI)。
继承层次结构
System.Object
System.Drawing.Design.UITypeEditor
Microsoft.VisualStudio.Modeling.Design.FlagEnumerationEditor
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public NotInheritable Class FlagEnumerationEditor _
Inherits UITypeEditor
public sealed class FlagEnumerationEditor : UITypeEditor
FlagEnumerationEditor 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
FlagEnumerationEditor | 初始化 FlagEnumerationEditor 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
IsDropDownResizable | 获取一个值,指示是否应该由用户调整下拉编辑器的大小。 (继承自 UITypeEditor。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
EditValue(IServiceProvider, Object) | 使用 GetEditStyle 方法所指示的编辑器样式编辑指定对象的值。 (继承自 UITypeEditor。) |
![]() |
EditValue(ITypeDescriptorContext, IServiceProvider, Object) | 通过使用GetEditStyle 方法指示的编辑器样式编辑枚举值。 (重写 UITypeEditor.EditValue(ITypeDescriptorContext, IServiceProvider, Object)。) |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
GetEditStyle() | 获取由 EditValue 方法使用的编辑器样式。 (继承自 UITypeEditor。) |
![]() |
GetEditStyle(ITypeDescriptorContext) | 获取由 EditValue 方法使用的编辑器样式。 (重写 UITypeEditor.GetEditStyle(ITypeDescriptorContext)。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetPaintValueSupported() | 指示该编辑器是否支持绘制对象值的表示形式。 (继承自 UITypeEditor。) |
![]() |
GetPaintValueSupported(ITypeDescriptorContext) | 指示指定的上下文是否支持在指定的上下文内绘制对象值的表示形式。 (继承自 UITypeEditor。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
PaintValue(PaintValueEventArgs) | 使用指定的 PaintValueEventArgs 绘制某个对象的值的表示形式。 (继承自 UITypeEditor。) |
![]() |
PaintValue(Object, Graphics, Rectangle) | 将指定对象的值的表示形式绘制到指定的画布上。 (继承自 UITypeEditor。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
备注
域特定语言工具 (DSL 工具) 使用该类型表示标志枚举的属性值输入属性网格和允许编辑的值。
若要创建标志枚举域的自定义编辑器的,从该类继承并重写一个或多个成员。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。