LabelShapeTextPropertyDescriptor 类

LabelShape 的文本属性的属性描述符。

继承层次结构

System.Object
  System.ComponentModel.MemberDescriptor
    System.ComponentModel.PropertyDescriptor
      Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
        Microsoft.VisualStudio.Modeling.Diagrams.LabelShapeTextPropertyDescriptor

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

语法

声明
Public Class LabelShapeTextPropertyDescriptor _
    Inherits ElementPropertyDescriptor
public class LabelShapeTextPropertyDescriptor : ElementPropertyDescriptor

LabelShapeTextPropertyDescriptor 类型公开以下成员。

构造函数

  名称 说明
公共方法 LabelShapeTextPropertyDescriptor 初始化 LabelShapeTextPropertyDescriptor 类的新实例。

页首

属性

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

页首

方法

  名称 说明
公共方法 AddValueChanged (继承自 ElementPropertyDescriptor。)
公共方法 CanResetValue 指示域属性的值是否可以重置。 (继承自 ElementPropertyDescriptor。)
受保护的方法 CreateAttributeCollection 使用传递到构造函数的特性数组创建特性的集合。 (继承自 MemberDescriptor。)
受保护的方法 CreateInstance 创建指定类型的实例。 (继承自 PropertyDescriptor。)
公共方法 Equals 将此对象与另一个对象进行比较,看看它们是否相等。 (继承自 PropertyDescriptor。)
受保护的方法 FillAttributes PropertyDescriptor 的特性添加到父类中的指定特性列表中。 (继承自 PropertyDescriptor。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetChildProperties() 返回默认的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(array<Attribute[]) 通过将指定的特性数组用作筛选器,返回 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(Object) 返回给定对象的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetChildProperties(Object, array<Attribute[]) 通过将指定的特性数组用作筛选器,返回给定对象的 PropertyDescriptorCollection。 (继承自 PropertyDescriptor。)
公共方法 GetEditor 根据标签形状是否支持多线的情况,要么获取标准单线文本编辑器,要么获取多线文本编辑器。 (重写 ElementPropertyDescriptor.GetEditor(Type)。)
公共方法 GetHashCode 返回该对象的哈希代码。 (继承自 PropertyDescriptor。)
受保护的方法 GetInvocationTarget 此方法返回应在成员调用期间使用的对象。 (继承自 PropertyDescriptor。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 GetTypeFromName 返回使用其名称的类型。 (继承自 PropertyDescriptor。)
公共方法 GetValue 获取域属性的值。 (继承自 ElementPropertyDescriptor。)
受保护的方法 GetValueChangedHandler 检索特定组件的 ValueChanged 事件处理程序的当前集合。 (继承自 PropertyDescriptor。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnValueChanged 引发已实现的 ValueChanged 事件。 (继承自 PropertyDescriptor。)
公共方法 RemoveValueChanged (继承自 ElementPropertyDescriptor。)
公共方法 ResetValue 重置域属性的值。 (继承自 ElementPropertyDescriptor。)
公共方法 SetValue 设置域属性的值。 (继承自 ElementPropertyDescriptor。)
公共方法 ShouldSerializeValue 指示是否应序列化域属性。 (继承自 ElementPropertyDescriptor。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间