GetEditor Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ElementPropertyDescriptor.GetEditor Method

Updated: July 2008

Returns a value editor for the described property.

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

public override Object GetEditor(
	Type 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.




July 2008

Added topic.

Content bug fix.

© 2016 Microsoft