StyleCollection.CreateKnownType(Int32) 方法

定义

根据 Style 方法返回的单个元素集合,创建 GetKnownTypes() 类的实例。Creates an instance of the Style class, based on the single element collection returned by the GetKnownTypes() method.

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 所返回的有序类型列表中获得。The index, from the ordered list of types returned by GetKnownTypes(), of the type of the IStateManager object to create. 由于 GetKnownTypes()StyleCollection 方法返回的列表只有一个类型,因此忽略输入的 indexBecause the GetKnownTypes() method of StyleCollection returns a list with only one type, the input index is ignored.

返回

Object

Style 类的实例。An instance of the Style class.

适用于