Share via


TaskDialogRadioButtonCollection.InsertItem 方法

定義

將項目插入至 Collection<T> 中指定的索引位置。

protected:
 override void InsertItem(int index, System::Windows::Forms::TaskDialogRadioButton ^ item);
protected override void InsertItem (int index, System.Windows.Forms.TaskDialogRadioButton item);
override this.InsertItem : int * System.Windows.Forms.TaskDialogRadioButton -> unit
Protected Overrides Sub InsertItem (index As Integer, item As TaskDialogRadioButton)

參數

index
Int32

應在 item 插入以零為起始的索引。

item
TaskDialogRadioButton

要插入的物件。 參考類型的值可以是 null

例外狀況

itemnull

item 已經新增至集合。

item 已經是其他集合的一部分。 - 或 - 此集合目前繫結至工作對話方塊。

適用於