ListBox.IntegerCollection.AddRange 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一組整數加入集合中。
多載
| 名稱 | Description |
|---|---|
| AddRange(Int32[]) |
向集合加入整數陣列。 |
| AddRange(ListBox+IntegerCollection) |
將現有 ListBox.IntegerCollection 的集合內容加入另一個集合。 |
AddRange(Int32[])
向集合加入整數陣列。
public:
void AddRange(cli::array <int> ^ items);
public:
void AddRange(... cli::array <int> ^ items);
public void AddRange(int[] items);
public void AddRange(params int[] items);
member this.AddRange : int[] -> unit
Public Sub AddRange (items As Integer())
Public Sub AddRange (ParamArray items As Integer())
參數
- items
- Int32[]
要加入集合的整數陣列。
備註
整數陣列會附加到集合中,重複的則從集合中移除。
適用於
AddRange(ListBox+IntegerCollection)
將現有 ListBox.IntegerCollection 的集合內容加入另一個集合。
public:
void AddRange(System::Windows::Forms::ListBox::IntegerCollection ^ value);
public void AddRange(System.Windows.Forms.ListBox.IntegerCollection value);
member this.AddRange : System.Windows.Forms.ListBox.IntegerCollection -> unit
Public Sub AddRange (value As ListBox.IntegerCollection)
參數
那是 ListBox.IntegerCollection 要加入另一個收藏的。
備註
現有 ListBox.IntegerCollection 內容會附加到目前的收藏中,重複的內容則從合併的收藏中移除。