ICustomTypeDescriptor.GetEditor(Type) Méthode

Définition

Retourne un éditeur du type spécifié pour cette instance d’un composant.

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

Paramètres

editorBaseType
Type

Qui Type représente l’éditeur de cet objet.

Retours

Type Object spécifié qui est l’éditeur de cet objet ou null si l’éditeur est introuvable.

Attributs

Remarques

Le type du editorBaseType paramètre est généralement UITypeEditor, mais vous pouvez également utiliser d’autres types (par exemple, ComponentEditor et InstanceCreationEditor).

S’applique à

Voir aussi