语言

MenuItemStyleCollectionEditor.CreateInstance(Type) 方法

定义

创建指定集合项类型的新实例。

protected:
 override System::Object ^ CreateInstance(Type ^ itemType);
protected override object CreateInstance(Type itemType);
override this.CreateInstance : Type -> obj
Protected Overrides Function CreateInstance (itemType As Type) As Object

参数

itemType
Type

要 Type 创建的项。

返回

指定类型的 MenuItemStyle新实例。

注解

该方法 CreateInstance 用于创建新 MenuItemStyle 对象。 调用 CreateInstance 该方法 CreateInstance 以访问后期绑定支持的激活方法。

适用于

另请参阅