Udostępnij za pośrednictwem


ElementPropertyDescriptor Constructors

Definition

Overloads

ElementPropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

The ElementPropertyDescriptor can operate upon a specific element passed in to the constructor, or it can accept a null element.

If a specific element is provided, GetValue(), SetValue(), and the other methods don't need the component argument passed in and can instead use that specific element.

If a null element is provided, GetValue(), SetValue(), and the other methods will use the component argument passed in.

ElementPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, Attribute[])

The ElementPropertyDescriptor can operate upon a specific element passed in to the constructor, or it can accept a null element.

If a specific element is provided, GetValue(), SetValue(), and the other methods don't need the component argument passed in and can instead use that specific element.

If a null element is provided, GetValue(), SetValue(), and the other methods will use the component argument passed in.

ElementPropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

The ElementPropertyDescriptor can operate upon a specific element passed in to the constructor, or it can accept a null element.

If a specific element is provided, GetValue(), SetValue(), and the other methods don't need the component argument passed in and can instead use that specific element.

If a null element is provided, GetValue(), SetValue(), and the other methods will use the component argument passed in.

public:
 ElementPropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ modelElement, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, cli::array <Attribute ^> ^ attributes);
public ElementPropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement modelElement, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Attribute[] attributes);
new Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Attribute[] -> Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
Public Sub New (modelElement As ModelElement, domainProperty As DomainPropertyInfo, attributes As Attribute())

Parameters

modelElement
ModelElement

ModelElement whose property will be operated upon. This may be null, in which case GetValue() and SetValue() actually use the argument passed in.

domainProperty
DomainPropertyInfo

Property (Required)

attributes
Attribute[]

Array of Attributes for this property descriptor

Applies to

ElementPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, Attribute[])

The ElementPropertyDescriptor can operate upon a specific element passed in to the constructor, or it can accept a null element.

If a specific element is provided, GetValue(), SetValue(), and the other methods don't need the component argument passed in and can instead use that specific element.

If a null element is provided, GetValue(), SetValue(), and the other methods will use the component argument passed in.

public:
 ElementPropertyDescriptor(Microsoft::VisualStudio::Modeling::Design::ElementTypeDescriptor ^ owner, Microsoft::VisualStudio::Modeling::ModelElement ^ modelElement, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, cli::array <Attribute ^> ^ attributes);
public ElementPropertyDescriptor (Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor owner, Microsoft.VisualStudio.Modeling.ModelElement modelElement, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Attribute[] attributes);
new Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Attribute[] -> Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
Public Sub New (owner As ElementTypeDescriptor, modelElement As ModelElement, domainProperty As DomainPropertyInfo, attributes As Attribute())

Parameters

owner
ElementTypeDescriptor

Owner of this object

modelElement
ModelElement

ModelElement whose property will be operated upon. This may be null, in which case GetValue() and SetValue() actually use the argument passed in.

domainProperty
DomainPropertyInfo

Property (Required)

attributes
Attribute[]

Array of Attributes for this property descriptor

Applies to