ElementPropertyDescriptor.GetEditor 方法

返回描述的属性的值编辑器。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Overrides Function GetEditor ( _
    editorBaseType As Type _
) As Object
public override Object GetEditor(
    Type editorBaseType
)

参数

  • editorBaseType
    类型:System.Type
    要为其返回值编辑器的类型。

返回值

类型:System.Object
描述的属性的值编辑器。

备注

返回的值编辑器是从 UITypeEditor 类派生。

如果 EditorAttribute 特性应用到所述的属性类型或为到元数据中描述的属性,则 EditorAttribute 特性定义编辑器用于属性。 否则,如果 editorBaseType 为 FlagsAttribute,则应用的特性的枚举,然后此方法返回 FlagEnumerationEditor。 否则,将使用已描述的属性类型的默认编辑器。

.NET Framework 安全性

请参阅

参考

ElementPropertyDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间

FlagEnumerationEditor

EditorAttribute

UITypeEditor