PropertyGridObject.ICustomTypeDescriptor.GetEditor(Type) Method

Definition

Returns an editor that has the specified base type for the property grid.

 virtual System::Object ^ System.ComponentModel.ICustomTypeDescriptor.GetEditor(Type ^ editorBaseType) = System::ComponentModel::ICustomTypeDescriptor::GetEditor;
object ICustomTypeDescriptor.GetEditor (Type editorBaseType);
Function GetEditor (editorBaseType As Type) As Object Implements ICustomTypeDescriptor.GetEditor

Parameters

editorBaseType
Type

A Type object that represents the base type of the editor that you want to find.

Returns

An instance of the editor that can be cast to the specified editor type, or null if an editor of the requested type cannot be found.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEditor%2A> method.

object MyGetEditor(Type editorBaseType) {
    return TypeDescriptor.GetEditor(
        this, editorBaseType, true
        );
}

Applies to