ElementPropertyDescriptor::GetEditor Method (Type^)

 

Returns a value editor for the described property.

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

public:
virtual Object^ GetEditor(
	Type^ editorBaseType
) override

Parameters

editorBaseType
Type: System::Type^

The type for which to return a value editor.

Return Value

Type: System::Object^

A value editor for the described property.

The value editor that is returned is derived from the UITypeEditor class.

If an EditorAttribute attribute is applied to the type of the described property or the to the metadata for the described property, then the EditorAttribute attribute defines the editor to use for the property. Otherwise, if editorBaseType is an enumeration to which a FlagsAttribute attribute is applied, then this method returns a FlagEnumerationEditor. Otherwise, the default editor for the type of the described property is used.

Return to top
Show: