DslDefinitionModelElementPropertyDescriptor 类

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

继承层次结构

System.Object
  System.ComponentModel.MemberDescriptor
    System.ComponentModel.PropertyDescriptor
      Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
        Microsoft.VisualStudio.Modeling.DslDefinition.Design.DslDefinitionModelElementPropertyDescriptor

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

语法

声明
Public NotInheritable Class DslDefinitionModelElementPropertyDescriptor _
    Inherits ElementPropertyDescriptor
public sealed class DslDefinitionModelElementPropertyDescriptor : ElementPropertyDescriptor

DslDefinitionModelElementPropertyDescriptor 类型公开以下成员。

构造函数

  名称 说明
公共方法 DslDefinitionModelElementPropertyDescriptor DslDefinitionModelElementPropertyDescriptor 描述概念属性。

页首

属性

  名称 说明
公共属性 Attributes 获取该成员的特性集合。 (继承自 MemberDescriptor。)
公共属性 Category 获取类别,在其中将域属性分组(当显示在 PropertyGrid 控件中的属性设置为“已分类”模式时)。 (继承自 ElementPropertyDescriptor。)
公共属性 ComponentType 获取该属性绑定到的模型元素的类型。 (继承自 ElementPropertyDescriptor。)
公共属性 Converter 获取所述属性的转换器。 (继承自 ElementPropertyDescriptor。)
公共属性 Description 获取描述的属性的说明,如 DescriptionResourceAttribute 中所指定的。 (继承自 ElementPropertyDescriptor。)
公共属性 DesignTimeOnly 获取是否只能在设计时设置该成员,如 DesignOnlyAttribute 中所指定的。 (继承自 MemberDescriptor。)
公共属性 DisplayName 获取描述的属性的显示名称,如 DisplayNameResourceAttribute 中所指定的。 (继承自 ElementPropertyDescriptor。)
公共属性 DomainPropertyInfo 获取用于生成该属性描述符的属性信息对象。 (继承自 ElementPropertyDescriptor。)
公共属性 IsBrowsable 获取一个指示该成员是否可浏览的值,如 BrowsableAttribute 中所指定的。 (继承自 MemberDescriptor。)
公共属性 IsInstanceBased 测试 PropertyDescriptor 是否基于实例或静态类型。 (继承自 ElementPropertyDescriptor。)
公共属性 IsLocalizable 获取指示是否应该本地化该属性的值,如 LocalizableAttribute 中所指定的值。 (继承自 PropertyDescriptor。)
公共属性 IsReadOnly 获取一个值,该值指示描述的属性是否为只读的。 (继承自 ElementPropertyDescriptor。)
公共属性 ModelElement 获取用于生成该属性描述符的模型元素。 (继承自 ElementPropertyDescriptor。)
公共属性 Name 获取此成员的名称。 (继承自 MemberDescriptor。)
公共属性 PropertyType 获取该介绍的属性的属性类型。 (继承自 ElementPropertyDescriptor。)
公共属性 SerializationVisibility 获取指示是否应该序列化该属性的值,如 DesignerSerializationVisibilityAttribute 中所指定的值。 (继承自 PropertyDescriptor。)
公共属性 SupportsChangeEvents 获取一个值,该值指示此属性的值更改通知是否源自属性说明符的外部。 (继承自 PropertyDescriptor。)

页首

方法

  名称 说明
公共方法 AddValueChanged (继承自 ElementPropertyDescriptor。)
公共方法 CanResetValue 指示域属性的值是否可以重置。 (继承自 ElementPropertyDescriptor。)
公共方法 Equals 将此对象与另一个对象进行比较,看看它们是否相等。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties() 返回默认的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(array<Attribute[]) 通过将指定的特性数组用作筛选器,返回 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(Object) 返回给定对象的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(Object, array<Attribute[]) 通过将指定的特性数组用作筛选器,返回给定对象的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetEditor 返回描述的属性的值编辑器。 (继承自 ElementPropertyDescriptor。)
公共方法 GetHashCode 返回该对象的哈希代码。 (继承自 PropertyDescriptor。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue 获取域属性的值。 (继承自 ElementPropertyDescriptor。)
受保护的方法 GetValueChangedHandler 检索特定组件的 ValueChanged 事件处理程序的当前集合。 (继承自 PropertyDescriptor。)
公共方法 RemoveValueChanged (继承自 ElementPropertyDescriptor。)
公共方法 ResetValue 重置域属性的值。 (继承自 ElementPropertyDescriptor。)
公共方法 SetValue 设置此属性的值。 (重写 ElementPropertyDescriptor.SetValue(Object, Object)。)
公共方法 ShouldSerializeValue 指示是否应序列化域属性。 (继承自 ElementPropertyDescriptor。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.DslDefinition.Design 命名空间