ListItemsCollectionEditor クラス
アセンブリ: System.Design (system.design.dll 内)
構文
ListItemsCollectionEditor クラスは、ListControl コントロールまたは類似コントロールから派生したコントロール内の ListItemCollection オブジェクトの ListItem 要素を編集するためのユーザー インターフェイスを提供します。
ビジュアル デザイナの [プロパティ] グリッドの [ListItems] プロパティにある省略記号ボタン ([...]) をクリックすると、ListItemsCollectionEditor が呼び出されます。
CanSelectMultipleInstances メソッドは、常に false を返し、エディタではオブジェクトを同時に 1 つしか選択できないことを示します。HelpTopic プロパティは、エディタによって表示されるヘルプ トピックの名前を返します。
EditorAttribute クラスを使用して、ListItemsCollectionEditor クラスと UITypeEditor クラス (コレクション エディタの基本クラス) をカスタムの ListItems プロパティと関連付けるコード例を次に示します。
Private items As ListItemCollection ' Associate the ListItemsCollectionEditor with the ListItems. <EditorAttribute( GetType(System.Web.UI.Design.WebControls. _ ListItemsCollectionEditor), _ GetType(UITypeEditor))> _ Public ReadOnly Property ListItems() As ListItemCollection Get Return items End Get End Property ' ListItems
- SecurityPermission (アンマネージ コードを呼び出すために必要なアクセス許可)。要求値 : Demand。アクセス許可値 : UnmanagedCode。
System.Drawing.Design.UITypeEditor
System.ComponentModel.Design.CollectionEditor
System.Web.UI.Design.WebControls.ListItemsCollectionEditor
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- ListItemsCollectionEditor クラスのページへのリンク