ICustomTypeDescriptor.GetEditor(Type) Метод

Определение

Возвращает редактор указанного типа для этого экземпляра компонента.

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

Параметры

editorBaseType
Type

Объект, Type представляющий редактор для этого объекта.

Возвращаемое значение

Указанный Object тип, который является редактором для этого объекта, или null если редактор не найден.

Атрибуты

Комментарии

Тип editorBaseType параметра обычно UITypeEditor, но также можно использовать другие типы (например, ComponentEditor и InstanceCreationEditor).

Применяется к

См. также раздел