Share via


SubMenuStyleCollection.CreateKnownType(Int32) 方法

定義

建立對應至指定索引之資料型別的 Object

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

要建立的資料型別索引。 這個方法實作中沒有使用這個參數;因此,您應該固定傳入 null

傳回

Object

永遠傳回空的 SubMenuStyle 物件。

備註

方法 CreateKnownType 是協助程式函式,用來建立 Object 對應至指定索引之資料類型的 。 索引通常是使用 GetKnownTypes 方法來建立支援的資料類型陣列,然後搜尋所需的資料類型陣列。

參數 index 不會用於方法的這個實作中,而且會被忽略。 您應該一律傳入 null 此參數。 此方法的這個實作一律會傳回空 SubMenuStyle 的 物件。

注意

這個方法僅供控制項開發人員使用。

適用於

另請參閱