FontTypeConverter.GetProperties 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 samling egenskapsbeskrivningar för den angivna typen.
public:
override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection
Parametrar
- context
- ITypeDescriptorContext
Ett objekt som innehåller sammanhangsinformation.
- value
- Object
Ett objekt som du behöver egenskapsbeskrivningar för.
- attributes
- Attribute[]
En matris med attribut som filtrerar den returnerade samlingen för att undanta irrelevanta egenskaper.
Returer
En PropertyDescriptorCollection som innehåller de egenskapsbeskrivningar som exponeras för komponenten, eller null om inga egenskapsbeskrivningar returneras.
Undantag
Den här metoden anropas från den här klassen i stället för från en härledd klass.
Kommentarer
Den här metoden implementeras inte i den här klassen – förutom för att utlösa undantaget. Se Anteckningar för arvtagare.
Anteckningar till arvingar
Åsidosätt den här metoden för att tillhandahålla en metod för att hämta valda PropertyDescriptor objekt eller typer. Använd parametern context för att extrahera ytterligare information om miljön som konverteraren anropas från. Använd matrisen attributes för att ange vilka egenskaper som ska inkluderas eller undantas.