Freigeben über


PresentationElementTypeDescriptor Class

Definition

Class for providing ModelElement TypeDesriptor for the propety grid support!

public ref class PresentationElementTypeDescriptor : Microsoft::VisualStudio::Modeling::Design::ElementTypeDescriptor
public class PresentationElementTypeDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
type PresentationElementTypeDescriptor = class
    inherit ElementTypeDescriptor
Public Class PresentationElementTypeDescriptor
Inherits ElementTypeDescriptor
Inheritance
PresentationElementTypeDescriptor
Derived

Constructors

PresentationElementTypeDescriptor(ICustomTypeDescriptor, PresentationElement, ModelElement)
Obsolete.

ctor for creating the wrapper class which represents the element to be consumed by the property grid.

PresentationElementTypeDescriptor(ICustomTypeDescriptor, PresentationElement)

Properties

ComponentType

Returns the component type of the selected model element.

(Inherited from ElementTypeDescriptor)
ModelElement

Returns the model element wrapped by this descriptor

(Inherited from ElementTypeDescriptor)
PresentationElement

Returns the presentation model element described by this descriptor

RepresentedModelElement

Returns the model element represented by the presentation element being described.

Store

Store to use to retrieve DomainInfo from. If we are describing a Type, this is a dummy store used for reflection only.

(Inherited from ElementTypeDescriptor)

Methods

CollectionRolePropertiesBrowsable(ModelElement)

For all the relationships this model element participate, return whether any PropertyDescriptor for Collection properties based on roles is Browsable

(Inherited from ElementTypeDescriptor)
CreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[]) (Inherited from ElementTypeDescriptor)
CreatePropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

Method to create a PropertyDescriptor which describes the property to be displayed in the grid.

(Inherited from ElementTypeDescriptor)
CreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[])

Method to create a PropertyDescriptor which describes a relationship and role to be displayed in the grid.

(Inherited from ElementTypeDescriptor)
GetCategory(ElementPropertyDescriptor)

Returns localized Category for Domain Property

(Inherited from ElementTypeDescriptor)
GetClassName()

Gets the class name displayed in the property grid.

GetComponentName()

Gets the component name displayed in the property grid.

GetDescription(ElementPropertyDescriptor)

Returns localized Description for Domain Property

(Inherited from ElementTypeDescriptor)
GetDisplayProperties(ModelElement, PropertyDescriptor)

Returns a list of property descriptors corresponding to each domain property

(Inherited from ElementTypeDescriptor)
GetDisplayProperties(ModelElement, Store, PropertyDescriptor)

Returns a list of property descriptors corresponding to each domain property

(Inherited from ElementTypeDescriptor)
GetDomainClassInfo(ModelElement)

Return the domain class info for the type of element being described.

(Inherited from ElementTypeDescriptor)
GetDomainPropertyAttributes(DomainPropertyInfo)

Gets an array of custom attributes for the specified DomainProperty.

(Inherited from ElementTypeDescriptor)
GetExtensionProperties(ModelElement, Attribute[])

Returns the property descriptors for any extension elements

(Inherited from ElementTypeDescriptor)
GetProperties()

Returns the properties for this instance of a component.

(Inherited from ElementTypeDescriptor)
GetProperties(Attribute[])

Returns the properties for this instance of a component using the attribute array as a filter.

GetPropertyDescriptorDisplayName(ElementPropertyDescriptor)

Returns localized DisplayName for the passed in elementPropertyDescriptor

(Inherited from ElementTypeDescriptor)
GetRolePlayerPropertyAttributes(DomainRoleInfo)

Gets an array of custom attributes for the specified DomainRole.

(Inherited from ElementTypeDescriptor)
IncludeCollectionRoleProperties(ModelElement)

For all the relationships this model element participate, return whether to provide a PropertyDescriptor for Collection properties based on roles.

(Inherited from ElementTypeDescriptor)
IncludeEmbeddingRelationshipProperties(ModelElement)

For all the relationships this model element participate, return whether to display DomainProperty defined on the DomainRelationship if this is an embedded model element.

(Inherited from ElementTypeDescriptor)
IncludeOppositeRolePlayerProperties(ModelElement)

For all the relationships this model element participate, return whether to display the opposite role player's ElementName property if there's one

IsPropertyDescriptorReadOnly(ElementPropertyDescriptor)

Returns whether this element property descriptor is read only or not.

(Inherited from ElementTypeDescriptor)
ShouldCreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo)

For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections

(Inherited from ElementTypeDescriptor)
ShouldCreatePropertyDescriptor(ModelElement, DomainPropertyInfo)

For a given domain property defined in the requestor model element, ShouldCreatePropertyDescriptor determines whether we should create a property descriptor or not. Note that the selectedElement provides the context where the intended property dsscriptor will be created from.

(Inherited from ElementTypeDescriptor)
ShouldCreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo)

For the relationship and the instance level role players involved, return whether to create a property descriptor for the opposite role player

(Inherited from ElementTypeDescriptor)

Applies to