返回描述的属性的值编辑器。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。