ToolStripItemCollection.Insert(Int32, ToolStripItem) ToolStripItemCollection.Insert(Int32, ToolStripItem) ToolStripItemCollection.Insert(Int32, ToolStripItem) ToolStripItemCollection.Insert(Int32, ToolStripItem) Method

定义

将指定的项插入集合中的指定索引处。Inserts the specified item into the collection at the specified index.

public:
 void Insert(int index, System::Windows::Forms::ToolStripItem ^ value);
public void Insert (int index, System.Windows.Forms.ToolStripItem value);
member this.Insert : int * System.Windows.Forms.ToolStripItem -> unit
Public Sub Insert (index As Integer, value As ToolStripItem)

参数

index
Int32 Int32 Int32 Int32

要将 ToolStripItemCollection 插入到 ToolStripItem 中的位置。The location in the ToolStripItemCollection at which to insert the ToolStripItem.

异常

value 参数为 nullThe value parameter is null.

适用于