StyleCollection.CreateKnownType(Int32) 方法

定義

根據 Style 方法傳回的單一項目集合,建立 GetKnownTypes() 類別的執行個體。

protected:
 override System::Object ^ CreateKnownType(int index);
protected override object CreateKnownType (int index);
override this.CreateKnownType : int -> obj
Protected Overrides Function CreateKnownType (index As Integer) As Object

參數

index
Int32

要建立 GetKnownTypes() 物件之型別的索引,根據 IStateManager 所傳回的型別排序清單而定。 由於 GetKnownTypes()StyleCollection 方法傳回僅含有單一型別的清單,因此會忽略輸入 index

傳回

Style 類別的執行個體。

適用於

另請參閱