CustomTypeDescriptor.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 that is to be associated with the class represented by this type descriptor.
public:
virtual 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 virtual object? GetEditor(Type editorBaseType);
public virtual object GetEditor(Type editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
public virtual 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
override this.GetEditor : Type -> obj
abstract member GetEditor : Type -> obj
override this.GetEditor : Type -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")>]
abstract member GetEditor : Type -> obj
override this.GetEditor : Type -> obj
Public Overridable Function GetEditor (editorBaseType As Type) As Object
Parameters
- editorBaseType
- Type
The base type of the editor to retrieve.
Returns
An editor of the given type that is to be associated with the class represented by this type descriptor. The default is null.
Implements
- Attributes
Remarks
If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEditor method will call the parent's corresponding method.