ICustomTypeDescriptor.GetEditor(Type) Metode

Definisi

Mengembalikan editor dari jenis yang ditentukan untuk instans komponen ini.

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

Parameter

editorBaseType
Type

Type Yang mewakili editor untuk objek ini.

Mengembalikan

Object Jenis yang ditentukan yang merupakan editor untuk objek ini, atau null jika editor tidak dapat ditemukan.

Atribut

Keterangan

Jenis editorBaseType parameter biasanya UITypeEditor, tetapi Anda juga dapat menggunakan jenis lain (misalnya, ComponentEditor dan InstanceCreationEditor).

Berlaku untuk

Lihat juga