ListBox.CreateItemCollection 方法

定义

创建项集合的新实例。Creates a new instance of the item collection.

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.ObjectCollectionA ListBox.ObjectCollection that represents the new item collection.

继承者说明

可以在派生类中重写此项,以提供不同的集合来存储项。You can override this in your derived classes to provide a different collection to store your items.

适用于

另请参阅