Udostępnij za pośrednictwem


ElementTypeDescriptor Class

Definition

ElementTypeDescriptor provides an implementation of a TypeDescriptor for a MEL instance or MEL type.

public ref class ElementTypeDescriptor : System::ComponentModel::CustomTypeDescriptor
public class ElementTypeDescriptor : System.ComponentModel.CustomTypeDescriptor
type ElementTypeDescriptor = class
    inherit CustomTypeDescriptor
Public Class ElementTypeDescriptor
Inherits CustomTypeDescriptor
Inheritance
ElementTypeDescriptor
Derived

Constructors

ElementTypeDescriptor(ICustomTypeDescriptor, ModelElement)

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

ElementTypeDescriptor(ICustomTypeDescriptor, Type)

ctor for creating the wrapper class which represents the MEL type to be consumed

ElementTypeDescriptor(ModelElement)

Constructor

ElementTypeDescriptor(Type)

ctor for creating the wrapper class which represents the MEL type to be consumed

Properties

ComponentType

Returns the component type of the selected model element.

ModelElement

Returns the model element wrapped by this descriptor

Store

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

Methods

CollectionRolePropertiesBrowsable(ModelElement)

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

CreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[])
CreatePropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

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

CreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[])

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

GetCategory(ElementPropertyDescriptor)

Returns localized Category for Domain Property

GetClassName()

Returns the name of the class this descriptor represents.

GetComponentName()

The name of the object, or an empty string if object does not have a name.

GetDescription(ElementPropertyDescriptor)

Returns localized Description for Domain Property

GetDisplayProperties(ModelElement, PropertyDescriptor)

Returns a list of property descriptors corresponding to each domain property

GetDisplayProperties(ModelElement, Store, PropertyDescriptor)

Returns a list of property descriptors corresponding to each domain property

GetDomainClassInfo(ModelElement)

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

GetDomainPropertyAttributes(DomainPropertyInfo)

Gets an array of custom attributes for the specified DomainProperty.

GetExtensionProperties(ModelElement, Attribute[])

Returns the property descriptors for any extension elements

GetProperties()

Returns the properties for this instance of a component.

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

GetRolePlayerPropertyAttributes(DomainRoleInfo)

Gets an array of custom attributes for the specified DomainRole.

IncludeCollectionRoleProperties(ModelElement)

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

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.

IncludeOppositeRolePlayerProperties(ModelElement)

For all the relationships this model element participate, return whether to display the opposite role player's ElementName property if the multiplicity is One/ZeroOne

IsPropertyDescriptorReadOnly(ElementPropertyDescriptor)

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

ShouldCreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo)

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

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.

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

Applies to