TypeDescriptor.GetEditor Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Zwraca edytor z określonym typem podstawowym.
Przeciążenia
| Nazwa | Opis |
|---|---|
| GetEditor(Object, Type, Boolean) |
Zwraca edytor z określonym typem podstawowym i deskryptorem niestandardowego typu dla określonego składnika. |
| GetEditor(Object, Type) |
Pobiera edytor z określonym typem podstawowym dla określonego składnika. |
| GetEditor(Type, Type) |
Zwraca edytor o określonym typie podstawowym dla określonego typu. |
GetEditor(Object, Type, Boolean)
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
Zwraca edytor z określonym typem podstawowym i deskryptorem niestandardowego typu dla określonego składnika.
public:
static System::Object ^ GetEditor(System::Object ^ component, Type ^ editorBaseType, bool noCustomTypeDesc);
[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. The Type of component cannot be statically discovered.")]
public static object? GetEditor(object component, Type editorBaseType, bool noCustomTypeDesc);
public static object GetEditor(object component, Type editorBaseType, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. The Type of component cannot be statically discovered.")]
public static object? GetEditor(object component, Type editorBaseType, bool noCustomTypeDesc);
[<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. The Type of component cannot be statically discovered.")>]
static member GetEditor : obj * Type * bool -> obj
static member GetEditor : obj * Type * bool -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. The Type of component cannot be statically discovered.")>]
static member GetEditor : obj * Type * bool -> obj
Public Shared Function GetEditor (component As Object, editorBaseType As Type, noCustomTypeDesc As Boolean) As Object
Parametry
- component
- Object
Składnik umożliwiający pobranie edytora.
- noCustomTypeDesc
- Boolean
Flaga wskazująca, czy należy wziąć pod uwagę informacje o opisie typu niestandardowego.
Zwraca
Wystąpienie edytora, które można rzutować do określonego typu edytora lub null jeśli nie można odnaleźć edytora żądanego typu.
- Atrybuty
Wyjątki
component lub editorBaseType ma wartość null.
component jest obiektem zdalnym procesu krzyżowego.
Uwagi
Typ editorBaseType to zwykle UITypeEditor, ale można również używać innych typów (na przykład ComponentEditor i InstanceCreationEditor).
Dla właściwości można zdefiniować wiele edytorów. Ta metoda służy do wybierania edytora, którego chcesz użyć.
Zobacz też
- ICustomTypeDescriptor
- AddEditorTable(Type, Hashtable)
- GetConverter
- Edytory typów interfejsu użytkownika — omówienie
Dotyczy
GetEditor(Object, Type)
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
Pobiera edytor z określonym typem podstawowym dla określonego składnika.
public:
static System::Object ^ GetEditor(System::Object ^ component, 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. The Type of component cannot be statically discovered.")]
public static object? GetEditor(object component, Type editorBaseType);
public static object GetEditor(object component, Type editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. The Type of component cannot be statically discovered.")]
public static object? GetEditor(object component, 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. The Type of component cannot be statically discovered.")>]
static member GetEditor : obj * Type -> obj
static member GetEditor : obj * Type -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. The Type of component cannot be statically discovered.")>]
static member GetEditor : obj * Type -> obj
Public Shared Function GetEditor (component As Object, editorBaseType As Type) As Object
Parametry
- component
- Object
Składnik umożliwiający pobranie edytora.
Zwraca
Wystąpienie edytora, które można rzutować do określonego typu edytora lub null jeśli nie można odnaleźć edytora żądanego typu.
- Atrybuty
Wyjątki
component lub editorBaseType ma wartość null.
component jest obiektem zdalnym procesu krzyżowego.
Uwagi
Typ editorBaseType to zwykle UITypeEditor, ale można również użyć innych typów (na przykład ComponentEditor i InstanceCreationEditor).
Dla właściwości można zdefiniować wiele edytorów. Ta metoda służy do wybierania edytora, którego chcesz użyć.
Zobacz też
Dotyczy
GetEditor(Type, Type)
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
- Źródło:
- TypeDescriptor.cs
Zwraca edytor o określonym typie podstawowym dla określonego typu.
public:
static System::Object ^ GetEditor(Type ^ type, 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 static object? GetEditor(Type type, Type editorBaseType);
public static object GetEditor(Type type, Type editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
public static object? GetEditor(Type type, 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.")>]
static member GetEditor : Type * Type -> obj
static member GetEditor : Type * Type -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")>]
static member GetEditor : Type * Type -> obj
Public Shared Function GetEditor (type As Type, editorBaseType As Type) As Object
Parametry
Zwraca
Wystąpienie obiektu edytora, które można rzutować do danego typu podstawowego lub null jeśli nie można odnaleźć edytora żądanego typu.
- Atrybuty
Wyjątki
type lub editorBaseType ma wartość null.
Uwagi
Typ editorBaseType to zwykle UITypeEditor, ale można również używać innych typów (na przykład ComponentEditor i InstanceCreationEditor).
Dla typu można zdefiniować wiele edytorów. Użyjesz tej metody, aby wybrać tę, której chcesz użyć.
Wywołaj tę wersję tej metody tylko wtedy, gdy nie masz wystąpienia obiektu.