ElementTypeDescriptor::GetDisplayProperties Method (ModelElement^, PropertyDescriptor^)

 

Returns a collection of property descriptors for all the properties of a model element.

Namespace:   Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

protected:
PropertyDescriptorCollection^ GetDisplayProperties(
	ModelElement^ requestor,
	PropertyDescriptor^% defaultPropertyDescriptor
)

Parameters

requestor
Type: Microsoft.VisualStudio.Modeling::ModelElement^

The model element to get the properties of.

defaultPropertyDescriptor
Type: System.ComponentModel::PropertyDescriptor^

A descriptor for the default property of the element, passed by reference.

Return Value

Type: System.ComponentModel::PropertyDescriptorCollection^

The collection of property descriptors for all of the properties of the model element.

Exception Condition
ArgumentNullException

requestor is null.

If the model element is marked for deletion, then this method returns an empty collection and does not update the defaultPropertyDescriptor.

This method adds or excludes descriptors for domain properties based on the following rules:

Return to top
Show: