Partilhar via


CompartmentTypeDescriptor Class

Definition

Specialized type descriptor for the Compartment class.

public ref class CompartmentTypeDescriptor : Microsoft::VisualStudio::Modeling::Diagrams::PresentationElementTypeDescriptor
public class CompartmentTypeDescriptor : Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptor
type CompartmentTypeDescriptor = class
    inherit PresentationElementTypeDescriptor
Public Class CompartmentTypeDescriptor
Inherits PresentationElementTypeDescriptor
Inheritance

Constructors

CompartmentTypeDescriptor(ICustomTypeDescriptor, Compartment)
CompartmentTypeDescriptor(ICustomTypeDescriptor, PresentationElement, ModelElement)
Obsolete.

Creates a new CompartmentTypeDescriptor

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

(Inherited from PresentationElementTypeDescriptor)
RepresentedModelElement

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

(Inherited from PresentationElementTypeDescriptor)
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()

Get the class name to show in the property grid

GetComponentName()
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.

(Inherited from PresentationElementTypeDescriptor)
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

(Inherited from PresentationElementTypeDescriptor)
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)

Overriden to control appearance of TitleFillColor and CompartmentFillColor properties in the property grid.

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