ToolStripItemCollection(ToolStrip, ToolStripItem[]) ToolStripItemCollection(ToolStrip, ToolStripItem[]) ToolStripItemCollection(ToolStrip, ToolStripItem[]) ToolStripItemCollection(ToolStrip, ToolStripItem[]) Constructor

定义

用指定的容器 ToolStripItemCollection 和指定的 ToolStrip 控件的数组初始化 ToolStripItem 类的新实例。Initializes a new instance of the ToolStripItemCollection class with the specified container ToolStrip and the specified array of ToolStripItem controls.

public:
 ToolStripItemCollection(System::Windows::Forms::ToolStrip ^ owner, cli::array <System::Windows::Forms::ToolStripItem ^> ^ value);
public ToolStripItemCollection (System.Windows.Forms.ToolStrip owner, System.Windows.Forms.ToolStripItem[] value);
new System.Windows.Forms.ToolStripItemCollection : System.Windows.Forms.ToolStrip * System.Windows.Forms.ToolStripItem[] -> System.Windows.Forms.ToolStripItemCollection
Public Sub New (owner As ToolStrip, value As ToolStripItem())

参数

value
ToolStripItem[]

ToolStripItem 类型的数组,包含此 ToolStripItemCollection 的初始控件。An array of type ToolStripItem containing the initial controls for this ToolStripItemCollection.

异常

owner 参数为 nullThe owner parameter is null.

适用于