ListItemsCollectionEditor クラス

定義

ListItemCollection コントロールまたは類似コントロールから派生したコントロール内の ListControl オブジェクトのコンポーネント エディターを提供します。

public ref class ListItemsCollectionEditor : System::ComponentModel::Design::CollectionEditor
public class ListItemsCollectionEditor : System.ComponentModel.Design.CollectionEditor
type ListItemsCollectionEditor = class
    inherit CollectionEditor
Public Class ListItemsCollectionEditor
Inherits CollectionEditor
継承
ListItemsCollectionEditor

次のコード例は、 クラスをEditorAttribute使用して、 クラスと UITypeEditor クラス (コレクション エディターの基底クラス) をカスタム ListItems プロパティに関連付けるListItemsCollectionEditor方法を示しています。

private ListItemCollection items = null;

// Associate the ListItemsCollectionEditor with the ListItems. 
[EditorAttribute(typeof(System.Web.UI.Design.WebControls.
   ListItemsCollectionEditor),
   typeof(UITypeEditor))]
public ListItemCollection ListItems
{
    get { return items; }
} // 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

注釈

クラスはListItemsCollectionEditor、 または 同様のコントロールからListControl派生したコントロール内の オブジェクトのListItemCollection要素を編集ListItemするためのユーザー インターフェイスを提供します。

ListItemsCollectionEditorは、ビジュアル デザイナーの [プロパティ] グリッドの ListItems プロパティの省略記号 (...) ボタンを選択して呼び出されます。

メソッドは CanSelectMultipleInstances 常に を返 false し、エディターで一度に選択できるオブジェクトは 1 つだけであることを示します。 プロパティは HelpTopic 、エディターに表示されるヘルプ トピックの名前を返します。

コンストラクター

ListItemsCollectionEditor(Type)

ListItemsCollectionEditor クラスの新しいインスタンスを初期化します。

プロパティ

CollectionItemType

コレクション内の各項目のデータ型を取得します。

(継承元 CollectionEditor)
CollectionType

コレクション オブジェクトのデータ型を取得します。

(継承元 CollectionEditor)
Context

現在のコンテキストを示す型記述子を取得します。

(継承元 CollectionEditor)
HelpTopic

ListItemsCollectionEditor オブジェクトに対して表示するヘルプ トピックを取得します。

HelpTopic

エディターのダイアログ ボックスの [ヘルプ] ボタンまたは F1 キーが押されたときにヘルプ トピックまたはトピック リストを表示するためのヘルプ キーワードを取得します。

(継承元 CollectionEditor)
IsDropDownResizable

ユーザーがドロップダウン エディターのサイズを変更できるかどうかを示す値を取得します。

(継承元 UITypeEditor)
NewItemTypes

コレクションに対して作成できる項目の有効な型を取得します。

(継承元 CollectionEditor)

メソッド

CancelChanges()

コレクションへの変更をキャンセルします。

(継承元 CollectionEditor)
CanRemoveInstance(Object)

コレクションの元のメンバーを削除できるかどうかを示します。

(継承元 CollectionEditor)
CanSelectMultipleInstances()

複数の ListItem 要素を同時に選択できるかどうかを示す値を取得します。

CreateCollectionForm()

現在のコレクションを表示および編集するための新しいフォームを作成します。

(継承元 CollectionEditor)
CreateCollectionItemType()

コレクションに格納されているデータ型を取得します。

(継承元 CollectionEditor)
CreateInstance(Type)

指定したコレクション項目の型の新しいインスタンスを作成します。

(継承元 CollectionEditor)
CreateNewItemTypes()

コレクション エディターでコレクションに格納できるデータ型を取得します。

(継承元 CollectionEditor)
DestroyInstance(Object)

オブジェクトの指定されたインスタンスを破棄します。

(継承元 CollectionEditor)
EditValue(IServiceProvider, Object)

GetEditStyle() メソッドで提供されたエディター スタイルを使用して、指定したオブジェクトの値を編集します。

(継承元 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

指定したサービス プロバイダーおよびコンテキストを使用して、指定したオブジェクトの値を編集します。

(継承元 CollectionEditor)
Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetDisplayText(Object)

特定のリスト項目の表示テキストを取得します。

(継承元 CollectionEditor)
GetEditStyle()

EditValue(IServiceProvider, Object) メソッドで使用するエディター スタイルを取得します。

(継承元 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

EditValue(ITypeDescriptorContext, IServiceProvider, Object) メソッドで使用する編集スタイルを取得します。

(継承元 CollectionEditor)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetItems(Object)

指定したコレクションを格納しているオブジェクト配列を取得します。

(継承元 CollectionEditor)
GetObjectsFromInstance(Object)

特定のオブジェクトを含むリストを返します。

(継承元 CollectionEditor)
GetPaintValueSupported()

エディターでオブジェクトの値の視覚的な表現を描画できるかどうかを示します。

(継承元 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

指定したコンテキスト内でオブジェクトの値の視覚的な表現を描画できるかどうかを示します。

(継承元 UITypeEditor)
GetService(Type)

要求されたサービスがある場合は、そのサービスを取得します。

(継承元 CollectionEditor)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
PaintValue(Object, Graphics, Rectangle)

指定したキャンバスに、指定したオブジェクトの値の視覚的な表現を描画します。

(継承元 UITypeEditor)
PaintValue(PaintValueEventArgs)

指定した PaintValueEventArgs を使用して、オブジェクトの値の視覚的な表現を描画します。

(継承元 UITypeEditor)
SetItems(Object, Object[])

指定した配列をコレクション内の項目として設定します。

(継承元 CollectionEditor)
ShowHelp()

コレクション エディターの既定のヘルプ トピックを表示します。

(継承元 CollectionEditor)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください