FontConverter.GetProperties 方法

定義

擷取這個型別的屬性集。 根據預設值,型別不傳回任何屬性。

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);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object? value, Attribute[]? attributes);
public override System.ComponentModel.PropertyDescriptorCollection? GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object value, 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

參數

context
ITypeDescriptorContext

可用來提供其他內容的型別描述項。

value
Object

要為其取得屬性的物件的值。

attributes
Attribute[]

描述屬性的 Attribute 物件陣列。

傳回

應該公開給這個資料型別的屬性集。 如果沒有屬性應該公開,則會傳回 null。 預設的實作 (Implementation) 一定會傳回 null

這個方法的簡單實作可呼叫正確資料型別的 GetProperties 方法。

適用於