ListBox.CreateItemCollection 方法

定義

建立項目集合的新執行個體。

protected:
 virtual System::Windows::Forms::ListBox::ObjectCollection ^ CreateItemCollection();
protected virtual System.Windows.Forms.ListBox.ObjectCollection CreateItemCollection ();
abstract member CreateItemCollection : unit -> System.Windows.Forms.ListBox.ObjectCollection
override this.CreateItemCollection : unit -> System.Windows.Forms.ListBox.ObjectCollection
Protected Overridable Function CreateItemCollection () As ListBox.ObjectCollection

傳回

ListBox.ObjectCollection

ListBox.ObjectCollection,代表新的項目集合。

給繼承者的注意事項

您可以在衍生類別中覆寫此專案,以提供不同的集合來儲存您的專案。

適用於

另請參閱