ListBox.SelectedObjectCollection.Add(Object) 方法

定義

將項目加入 ListBox 的選取項目清單中。Adds an item to the list of selected items for a ListBox.

public:
 void Add(System::Object ^ value);
public void Add (object value);
member this.Add : obj -> unit
Public Sub Add (value As Object)

參數

value
Object

物件,表示要加入選取項目集合中的項目。An object representing the item to add to the collection of selected items.

適用於