Compartir a través de


LabelShapeTextPropertyDescriptor Class

Definition

Property descriptor for the LabelShape's Text property.

public ref class LabelShapeTextPropertyDescriptor : Microsoft::VisualStudio::Modeling::Design::ElementPropertyDescriptor
public class LabelShapeTextPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
type LabelShapeTextPropertyDescriptor = class
    inherit ElementPropertyDescriptor
Public Class LabelShapeTextPropertyDescriptor
Inherits ElementPropertyDescriptor
Inheritance
LabelShapeTextPropertyDescriptor

Constructors

LabelShapeTextPropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

Initializes a new instance of the LabelShapeTextPropertyDescriptor class.

Properties

Category

Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.

(Inherited from ElementPropertyDescriptor)
ComponentType

The type of component the framework expects for this property. Notice this returns element.GetType(). That is because the object that is being browsed when this property is shown is an ModelElement. So we are faking the PropertyGrid into thinking this is a property on that type, even though it isn't.

(Inherited from ElementPropertyDescriptor)
Converter

Gets the type converter of the property descriptor.

(Inherited from ElementPropertyDescriptor)
Description
DisplayName

Gets the name that can be displayed in a window, such as a Properties window.

(Inherited from ElementPropertyDescriptor)
DomainPropertyInfo

DomainPropertyInfo for this propery

(Inherited from ElementPropertyDescriptor)
IsInstanceBased

Test if this PropertyDescriptor is based on an instance or a static type.

(Inherited from ElementPropertyDescriptor)
IsReadOnly

We have to override all the abstract members.

(Inherited from ElementPropertyDescriptor)
ModelElement

returns the element to which this property belongs

(Inherited from ElementPropertyDescriptor)
PropertyType

Returns the property type.

(Inherited from ElementPropertyDescriptor)

Methods

AddValueChanged(Object, EventHandler) (Inherited from ElementPropertyDescriptor)
CanResetValue(Object)

This is not a resettable property.

(Inherited from ElementPropertyDescriptor)
GetEditor(Type)

Gets either the standard single-line text editor or the multiline text editor depending on whether the label shape supports multiline.

GetValue(Object)

Get the value of the property...

(Inherited from ElementPropertyDescriptor)
RemoveValueChanged(Object, EventHandler) (Inherited from ElementPropertyDescriptor)
ResetValue(Object)

Reset domain propertyvalue to the default based on the default of the domain.

(Inherited from ElementPropertyDescriptor)
SetValue(Object, Object)

Sets the value of the property.

(Inherited from ElementPropertyDescriptor)
ShouldSerializeValue(Object)

Allow the property to be reported as bold in the property browser

(Inherited from ElementPropertyDescriptor)

Applies to