ICustomTypeDescriptor.GetEditor(Type) Método

Definição

Retorna um editor do tipo especificado para esta instância de um componente.

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

Parâmetros

editorBaseType
Type

Um Type que representa o editor deste objeto.

Retornos

Um Object dos tipos especificados que é o editor deste objeto ou null se o editor não puder ser encontrado.

Atributos

Comentários

O tipo do editorBaseType parâmetro geralmente UITypeEditoré , mas você também pode usar outros tipos (por exemplo, ComponentEditor e InstanceCreationEditor).

Aplica-se a

Confira também