Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PresentationElementTypeDescriptor Class
Collapse the table of content
Expand the table of content

PresentationElementTypeDescriptor Class

Class for providing ModelElement TypeDesriptor for the propety grid support!

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

public class PresentationElementTypeDescriptor : ElementTypeDescriptor

The PresentationElementTypeDescriptor type exposes the following members.

  NameDescription
Public methodPresentationElementTypeDescriptor(ICustomTypeDescriptor, PresentationElement)
Protected methodPresentationElementTypeDescriptor(ICustomTypeDescriptor, PresentationElement, ModelElement) Obsolete. ctor for creating the wrapper class which represents the element to be consumed by the property grid.
Top

  NameDescription
Protected propertyComponentTypeGets the Type of the model element that this class is representing. (Inherited from ElementTypeDescriptor.)
Public propertyModelElementGets the model element that this class is representing. (Inherited from ElementTypeDescriptor.)
Public propertyPresentationElementReturns the presentation model element described by this descriptor
Protected propertyRepresentedModelElement
Protected propertyStore (Inherited from ElementTypeDescriptor.)
Top

  NameDescription
Protected methodCollectionRolePropertiesBrowsableFor all the relationships this model element participate, return whether any PropertyDescriptor for Collection properties based on roles is Browsable (Inherited from ElementTypeDescriptor.)
Protected methodCreateCollectionPropertyDescriptor (Inherited from ElementTypeDescriptor.)
Protected methodCreatePropertyDescriptorCreates a descriptor for a property of a model element. (Inherited from ElementTypeDescriptor.)
Protected methodCreateRolePlayerPropertyDescriptorCreates a descriptor for a role property of a model element. (Inherited from ElementTypeDescriptor.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAttributesReturns a collection of custom attributes for the type represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Protected methodGetCategoryReturns a localized string for the category of a domain property. (Inherited from ElementTypeDescriptor.)
Public methodGetClassNameGets the class name displayed in the property grid. (Overrides ElementTypeDescriptor.GetClassName().)
Public methodGetComponentNameGets the component name displayed in the property grid. (Overrides ElementTypeDescriptor.GetComponentName().)
Public methodGetConverterReturns a type converter for the type represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Public methodGetDefaultEventReturns the event descriptor for the default event of the object represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Public methodGetDefaultPropertyReturns the property descriptor for the default property of the object represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Protected methodGetDescriptionReturns a localized string for the description of a domain property. (Inherited from ElementTypeDescriptor.)
Protected methodGetDisplayProperties(ModelElement, PropertyDescriptor)Returns a collection of property descriptors for all the properties of a model element. (Inherited from ElementTypeDescriptor.)
Protected methodGetDisplayProperties(ModelElement, Store, PropertyDescriptor)Returns a list of property descriptors corresponding to each domain property (Inherited from ElementTypeDescriptor.)
Protected methodGetDomainClassInfoReturn the domain class info for the type of element being described. (Inherited from ElementTypeDescriptor.)
Protected methodGetDomainPropertyAttributesReturns an array of the custom attributes that are applied to the described property. (Inherited from ElementTypeDescriptor.)
Public methodGetEditorReturns an editor of the specified type that is to be associated with the class represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Public methodGetEvents()Returns a collection of event descriptors for the object represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Public methodGetEvents(Attribute[])Returns a filtered collection of event descriptors for the object represented by this type descriptor. (Inherited from CustomTypeDescriptor.)
Protected methodGetExtensionPropertiesReturns the property descriptors for any extension elements (Inherited from ElementTypeDescriptor.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperties()Returns a collection of domain property descriptors that contains all the properties of the described type. (Inherited from ElementTypeDescriptor.)
Public methodGetProperties(Attribute[])Returns the properties for this instance of a component using the attribute array as a filter. (Overrides ElementTypeDescriptor.GetProperties(Attribute[]).)
Protected methodGetPropertyDescriptorDisplayNameReturns a localized string for the display name of a domain property. (Inherited from ElementTypeDescriptor.)
Public methodGetPropertyOwnerReturns an object that contains the property described by the specified property descriptor. (Inherited from CustomTypeDescriptor.)
Protected methodGetRolePlayerPropertyAttributesReturns an array of the custom attributes that are applied to the described role property. (Inherited from ElementTypeDescriptor.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodIncludeCollectionRolePropertiesFor all the relationships this model element participate, return whether to provide a PropertyDescriptor for Collection properties based on roles. (Inherited from ElementTypeDescriptor.)
Protected methodIncludeEmbeddingRelationshipPropertiesFor the specified model element, returns a value that indicates whether to add properties of the target element of any embedded relationships that do not allow duplicates. (Inherited from ElementTypeDescriptor.)
Protected methodIncludeOppositeRolePlayerPropertiesFor all the relationships this model element participate, return whether to display the opposite role player's ElementName property if there's one (Overrides ElementTypeDescriptor.IncludeOppositeRolePlayerProperties(ModelElement).)
Protected methodIsPropertyDescriptorReadOnlyReturns a value that indicates whether the described property is read-only. (Inherited from ElementTypeDescriptor.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodShouldCreateCollectionPropertyDescriptorFor the relationship and the instance level role players involved, return whether to create a property descriptor for the collections (Inherited from ElementTypeDescriptor.)
Protected methodShouldCreatePropertyDescriptorReturns a value that indicates whether a descriptor should be created for the specified domain property. (Inherited from ElementTypeDescriptor.)
Protected methodShouldCreateRolePlayerPropertyDescriptorReturns a value that indicates whether a descriptor should be created for the specified role property. (Inherited from ElementTypeDescriptor.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft