ListControl クラスから継承したコントロールの項目コレクションを編集するためのユーザー インターフェイスを提供します。
この型のすべてのメンバの一覧については、ListItemsCollectionEditor メンバ を参照してください。
System.Object
System.Drawing.Design.UITypeEditor
System.ComponentModel.Design.CollectionEditor
System.Web.UI.Design.WebControls.ListItemsCollectionEditor
Public Class ListItemsCollectionEditor
Inherits CollectionEditor
[C#]
public class ListItemsCollectionEditor : CollectionEditor
[C++]
public __gc class ListItemsCollectionEditor : public
CollectionEditor
[JScript]
public class ListItemsCollectionEditor extends CollectionEditor
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
使用例
[Visual Basic] EditorAttribute を使用して、 ListItemsCollectionEditor クラスと UITypeEditor クラス (コレクション エディタの基本クラス) をカスタムの ListItems プロパティと関連付けるコード例を次に示します。
Private items As ListItemCollection
' Use the ListItemsCollectionEditor to allow
' property editing on a design surface.
<EditorAttribute( _
GetType(System.Web.UI.Design.WebControls.ListItemsCollectionEditor), _
GetType(UITypeEditor))> _
Public ReadOnly Property ListItems() As ListItemCollection
Get
Return items
End Get
End Property
[C#, C++, JScript] C#、C++、および JScript のサンプルはありません。Visual Basic のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン
をクリックします。
必要条件
名前空間: System.Web.UI.Design.WebControls
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: System.Design (System.Design.dll 内)
参照
ListItemsCollectionEditor メンバ | System.Web.UI.Design.WebControls 名前空間