PropertyDescriptor.GetEditor(Type) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar en redigerare av den angivna typen.
public:
virtual 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. PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual object? GetEditor(Type editorBaseType);
public virtual object GetEditor(Type editorBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual 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. PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetEditor : Type -> obj
override this.GetEditor : Type -> obj
abstract member GetEditor : Type -> obj
override this.GetEditor : Type -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed. PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetEditor : Type -> obj
override this.GetEditor : Type -> obj
Public Overridable Function GetEditor (editorBaseType As Type) As Object
Parametrar
- editorBaseType
- Type
Bastypen för redigeraren, som används för att skilja mellan flera redigerare som en egenskap stöder.
Returer
En instans av den begärda redigeringstypen eller null om det inte går att hitta en redigerare.
- Attribut