FontTypeConverter.GetProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定類型的屬性描述集合。
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
參數
- context
- ITypeDescriptorContext
一個提供上下文資訊的物件。
- value
- Object
一個你需要屬性描述的物件。
- attributes
- Attribute[]
一組屬性陣列用來過濾回傳的集合,以排除不相關屬性。
傳回
PropertyDescriptorCollection A 包含為該元件暴露的屬性描述;或null若未回傳屬性描述。
例外狀況
此方法由該類別呼叫,而非從衍生類別呼叫。
備註
此方法未在本類別實作——除了拋出例外。 請參閱繼承者註解。
給繼承者的注意事項
覆寫此方法,提供取得選取 PropertyDescriptor 物件或類型的方法。 利用參數 context 擷取關於該轉換器所使用的環境的額外資訊。 使用陣 attributes 列指定要包含或排除的屬性。