ICustomTypeDescriptor.GetEditor(Type) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
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.