ListBox.SelectedObjectCollection(ListBox) 建構函式

定義

初始化 ListBox.SelectedObjectCollection 類別的新執行個體。Initializes a new instance of the ListBox.SelectedObjectCollection class.

public:
 SelectedObjectCollection(System::Windows::Forms::ListBox ^ owner);
public SelectedObjectCollection (System.Windows.Forms.ListBox owner);
new System.Windows.Forms.ListBox.SelectedObjectCollection : System.Windows.Forms.ListBox -> System.Windows.Forms.ListBox.SelectedObjectCollection
Public Sub New (owner As ListBox)

參數

owner
ListBox

ListBox,表示集合的擁有人。A ListBox representing the owner of the collection.

備註

無法建立這個類別的實例,而不將它與 ListBox 控制項相關聯。An instance of this class cannot be created without associating it with a ListBox control.

適用於