SubMenuStyleCollection.CreateKnownType(Int32) 方法
定义
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
要创建的数据类型的索引。The index of the data type to create. 在该方法的此实现中不使用此参数;因此,应始终传入 null。This parameter is not used in this implementation of the method; therefore, you should always pass in null.
返回
始终返回空 SubMenuStyle 对象。Always returns an empty SubMenuStyle object.
注解
CreateKnownType方法是一个帮助器函数,用于创建与 Object 指定索引对应的数据类型的。The CreateKnownType method is a helper function that is used to create an Object of the data type that corresponds to the specified index. 通常通过使用 GetKnownTypes 方法创建支持的数据类型的数组,然后在数组中搜索所需的数据类型来确定索引。The index is often determined by using the GetKnownTypes method to create an array of supported data types and then searching the array for the desired data type.
index此方法的实现中未使用参数,将忽略该参数。The index parameter is not used in this implementation of the method and is ignored. 应始终 null 为此参数传递。You should always pass in null for this parameter. 此方法的实现始终返回空 SubMenuStyle 对象。This implementation of the method always returns an empty SubMenuStyle object.
备注
此方法仅由控件开发人员使用。This method is used only by control developers.