DslDefinitionModelElementTrackingPropertyDescriptor 类

定义

为 DslDefintion 命名空间中定义的域类提供自定义跟踪属性描述符

public ref class DslDefinitionModelElementTrackingPropertyDescriptor sealed : Microsoft::VisualStudio::Modeling::Design::TrackingPropertyDescriptor
public sealed class DslDefinitionModelElementTrackingPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.TrackingPropertyDescriptor
type DslDefinitionModelElementTrackingPropertyDescriptor = class
    inherit TrackingPropertyDescriptor
Public NotInheritable Class DslDefinitionModelElementTrackingPropertyDescriptor
Inherits TrackingPropertyDescriptor
继承
DslDefinitionModelElementTrackingPropertyDescriptor

构造函数

DslDefinitionModelElementTrackingPropertyDescriptor(ModelElement, DomainPropertyInfo, DomainPropertyInfo, Attribute[])

ElementPropertyDescriptor 可以在传递给构造函数的特定元素上操作,也可以接受 null 元素。

如果提供了特定元素,GetValue () 、SetValue () ,其他方法将忽略传入的对象参数,而将使用该特定元素。

如果提供了 null 元素,则 GetValue () 、SetValue () ,其他方法将使用传入的对象参数。

属性

Category

获取该成员所属的类别的名称,如 CategoryAttribute 中所指定。

(继承自 ElementPropertyDescriptor)
ComponentType

框架需要此属性的组件类型。 请注意,此返回元素。GetType () 。 这是因为在显示此属性时要浏览的对象是一个 ModelElement。 因此,我们伪装 PropertyGrid 认为这是该类型的属性,即使它不是这样。

(继承自 ElementPropertyDescriptor)
Converter

获取属性说明符的类型转换器。

(继承自 ElementPropertyDescriptor)
Description

获取在 DescriptionAttribute 中指定的成员的说明。

(继承自 ElementPropertyDescriptor)
DisplayName

获取可以显示在窗口(如“属性”窗口)中的名称。

(继承自 ElementPropertyDescriptor)
DomainPropertyInfo

此 DomainPropertyInfo 的

(继承自 ElementPropertyDescriptor)
IsInstanceBased

测试此 PropertyDescriptor 是基于实例还是静态类型。

(继承自 ElementPropertyDescriptor)
IsReadOnly

返回此属性是否为只读。

ModelElement

返回此属性所属的元素

(继承自 ElementPropertyDescriptor)
PropertyType

返回属性类型。

(继承自 ElementPropertyDescriptor)

方法

AddValueChanged(Object, EventHandler) (继承自 ElementPropertyDescriptor)
CanResetValue(Object)

能否将此属性重置为其跟踪值

(继承自 TrackingPropertyDescriptor)
GetEditor(Type)

获取指定类型的编辑器。 重写此项,以便我们可以为 wisable 枚举提供自己的 FlagEnumerationEditor

(继承自 ElementPropertyDescriptor)
GetValue(Object)

获取属性的值 .。。

(继承自 ElementPropertyDescriptor)
RemoveValueChanged(Object, EventHandler) (继承自 ElementPropertyDescriptor)
ResetValue(Object)

将属性的值重置为计算得出的值。

(继承自 TrackingPropertyDescriptor)
SetValue(Object, Object)

设置属性的值。

ShouldSerializeValue(Object)

具有跟踪属性,embolden 非跟踪属性。

(继承自 TrackingPropertyDescriptor)

适用于