ICustomTypeDescriptor.GetEditor(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an editor of the specified type for this instance of a component.
public:
System::Object ^ GetEditor(Type ^ editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Design-time attributes are not preserved when trimming. Types referenced by attributes like EditorAttribute and DesignerAttribute may not be available after trimming.")]
public object? GetEditor(Type editorBaseType);
public object GetEditor(Type editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
public object? GetEditor(Type editorBaseType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Design-time attributes are not preserved when trimming. Types referenced by attributes like EditorAttribute and DesignerAttribute may not be available after trimming.")>]
abstract member GetEditor : Type -> obj
abstract member GetEditor : Type -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")>]
abstract member GetEditor : Type -> obj
Public Function GetEditor (editorBaseType As Type) As Object
Parameters
Returns
An Object of the specified type that is the editor for this object, or null if the editor cannot be found.
- Attributes
Remarks
The type of the editorBaseType parameter is usually UITypeEditor, but you can also use other types (for example, ComponentEditor and InstanceCreationEditor).