TrackingPropertyDescriptor 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用第二个属性的属性描述符类,用于管理它是处于计算状态还是处于存储状态。
public ref class TrackingPropertyDescriptor : Microsoft::VisualStudio::Modeling::Design::ElementPropertyDescriptor
public class TrackingPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
type TrackingPropertyDescriptor = class
inherit ElementPropertyDescriptor
Public Class TrackingPropertyDescriptor
Inherits ElementPropertyDescriptor
- 继承
- 派生
构造函数
| TrackingPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, DomainPropertyInfo, Attribute[]) |
ElementPropertyDescriptor 可以在传递给构造函数的特定元素上操作,也可以接受 null 元素。 如果提供了特定元素,GetValue () 、SetValue () 、andcool、thaznkl,则其他方法将忽略传入的对象自变量,而将改为使用该特定元素。 如果提供了 null 元素,则 GetValue () 、SetValue () ,其他方法将使用传入的对象参数。 |
| TrackingPropertyDescriptor(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 |
我们必须覆盖所有抽象成员。 (继承自 ElementPropertyDescriptor) |
| ModelElement |
返回此属性所属的元素 (继承自 ElementPropertyDescriptor) |
| PropertyType |
返回属性类型。 (继承自 ElementPropertyDescriptor) |
方法
| AddValueChanged(Object, EventHandler) | (继承自 ElementPropertyDescriptor) |
| CanResetValue(Object) |
能否将此属性重置为其跟踪值 |
| GetEditor(Type) |
获取指定类型的编辑器。 重写此项,以便我们可以为 wisable 枚举提供自己的 FlagEnumerationEditor (继承自 ElementPropertyDescriptor) |
| GetValue(Object) |
获取属性的值 .。。 (继承自 ElementPropertyDescriptor) |
| RemoveValueChanged(Object, EventHandler) | (继承自 ElementPropertyDescriptor) |
| ResetValue(Object) |
将属性的值重置为计算得出的值。 |
| SetValue(Object, Object) |
设置属性的值。 (继承自 ElementPropertyDescriptor) |
| ShouldSerializeValue(Object) |
具有跟踪属性,embolden 非跟踪属性。 |