ICustomTypeDescriptor.GetEditor(Type) Metodo

Definizione

Restituisce un editor del tipo specificato per questa istanza di un 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

Parametri

editorBaseType
Type

Oggetto Type che rappresenta l'editor per questo oggetto.

Valori restituiti

Oggetto Object del tipo specificato che rappresenta l'editor per questo oggetto o null se non è possibile trovare l'editor.

Attributi

Commenti

Il tipo del editorBaseType parametro è in genere UITypeEditor, ma è anche possibile usare altri tipi , ad esempio ComponentEditor e InstanceCreationEditor.

Si applica a

Vedi anche