DesignerActionListCollection クラス

定義

DesignerActionList オブジェクトのコレクションを表します。

public ref class DesignerActionListCollection : System::Collections::CollectionBase
[System.Runtime.InteropServices.ComVisible(true)]
public class DesignerActionListCollection : System.Collections.CollectionBase
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class DesignerActionListCollection : System.Collections.CollectionBase
public class DesignerActionListCollection : System.Collections.CollectionBase
[<System.Runtime.InteropServices.ComVisible(true)>]
type DesignerActionListCollection = class
    inherit CollectionBase
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type DesignerActionListCollection = class
    inherit CollectionBase
type DesignerActionListCollection = class
    inherit CollectionBase
Public Class DesignerActionListCollection
Inherits CollectionBase
継承
DesignerActionListCollection
属性

次のコード例では、オブジェクトの DesignerActionItem コレクションを作成する方法を示します。

完全な例については、「方法: スマート タグをWindows フォーム コンポーネントにアタッチする」を参照してください。

private DesignerActionListCollection actionLists;
Private lists As DesignerActionListCollection
public override DesignerActionListCollection ActionLists
{
    get
    {
        if (null == actionLists)
        {
            actionLists = new DesignerActionListCollection();
            actionLists.Add(
                new ColorLabelActionList(this.Component));
        }
        return actionLists;
    }
}
Public Overrides ReadOnly Property ActionLists() _
As DesignerActionListCollection
    Get
        If lists Is Nothing Then
            lists = New DesignerActionListCollection()
            lists.Add( _
            New ColorLabelActionList(Me.Component))
        End If
        Return lists
    End Get
End Property

注釈

クラスは DesignerActionListCollection 、スマート タグ パネル内のすべての項目の集計を表します。 クラスには DesignerActionListCollection 、0 個以上 DesignerActionList のオブジェクトが含まれています。 これらの各リストには、パネル内の実際の項目を表す 0 個以上のオブジェクトが含まれており、 DesignerActionItem クラスから派生します。

次の表は、 を指定して、カスタム コントロールを DesignerActionListCollection 含むコンポーネントの項目をパネルに設定するための 2 つの手法を示しています。

手法 説明
プル モデル クラスから派生したコンポーネント クラスのデザイナーは、 プロパティを ComponentDesigner 通じてこのコレクションを ActionLists 提供します。 デザイナー インフラストラクチャは、パネルを表示する必要がある場合に、このプロパティを読み取ります。
プッシュ モデル DesignerActionListまたは DesignerActionListCollection は、コンポーネントに関連付けられている の AddDesignerActionService メソッドの呼び出しでパラメーターとして指定されます。

デザイナー インフラストラクチャは、型の 2 つのパラメーターをコンストラクターが受け取るスマート タグ パネルを作成して、パネルを DesignerActionListCollection構築します。 プルされた項目とプッシュされた項目を含むリストのコレクションは、1 つのパネルにマージされます。

クラスから System.Collections.CollectionBase 派生しているため、 DesignerActionListCollection は 内部 ArrayList を使用してオブジェクトの DesignerActionList コレクションを格納します。

コンストラクター

DesignerActionListCollection()

DesignerActionListCollection クラスの新しいインスタンスを既定の設定で初期化します。

DesignerActionListCollection(DesignerActionList[])

指定したパネル項目を使用して、DesignerActionListCollection クラスの新しいインスタンスを初期化します。

プロパティ

Capacity

CollectionBase に格納できる要素の数を取得または設定します。

(継承元 CollectionBase)
Count

CollectionBase インスタンスに含まれる要素の数を取得します。 このプロパティはオーバーライドできません。

(継承元 CollectionBase)
InnerList

ArrayList インスタンス内の要素のリストを格納する CollectionBase を取得します。

(継承元 CollectionBase)
Item[Int32]

指定したインデックスにある要素を取得または設定します。

List

IList インスタンス内の要素のリストを格納する CollectionBase を取得します。

(継承元 CollectionBase)

メソッド

Add(DesignerActionList)

指定した DesignerActionList を現在のコレクションに追加します。

AddRange(DesignerActionList[])

指定した DesignerActionList 配列の要素を現在のコレクションの末尾に追加します。

AddRange(DesignerActionListCollection)

指定した DesignerActionListCollection の要素を現在のコレクションの末尾に追加します。

Clear()

CollectionBase インスタンスからすべてのオブジェクトを削除します。 このメソッドはオーバーライドできません。

(継承元 CollectionBase)
Contains(DesignerActionList)

特定の値がコレクションに含まれているかどうかを示します。

CopyTo(DesignerActionList[], Int32)

指定した配列インデックスを開始位置として、現在のコレクションの要素を指定した配列にコピーします。

Equals(Object)

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

(継承元 Object)
GetEnumerator()

CollectionBase インスタンスを反復処理する列挙子を返します。

(継承元 CollectionBase)
GetHashCode()

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

(継承元 Object)
GetType()

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

(継承元 Object)
IndexOf(DesignerActionList)

コレクション内での指定した項目のインデックスを調べます。

Insert(Int32, DesignerActionList)

コレクション内の指定した位置に、指定した DesignerActionList を挿入します。

MemberwiseClone()

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

(継承元 Object)
OnClear()

CollectionBase インスタンスの内容を消去しているときに、追加のカスタム プロセスを実行します。

OnClear()

CollectionBase インスタンスの内容を消去しているときに、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnClearComplete()

CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnInsert(Int32, Object)

DesignerActionListCollection インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。

OnInsert(Int32, Object)

CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnInsertComplete(Int32, Object)

CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnRemove(Int32, Object)

DesignerActionListCollection インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。

OnRemove(Int32, Object)

CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnRemoveComplete(Int32, Object)

CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnSet(Int32, Object, Object)

DesignerActionListCollection インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。

OnSet(Int32, Object, Object)

CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnSetComplete(Int32, Object, Object)

CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。

(継承元 CollectionBase)
OnValidate(Object)

値を検証するときに、追加のカスタム プロセスを実行します。

Remove(DesignerActionList)

最初に見つかった特定の DesignerActionList をコレクションから削除します。

RemoveAt(Int32)

CollectionBase インスタンスの指定したインデックスにある要素を削除します。 このメソッドはオーバーライドできません。

(継承元 CollectionBase)
ToString()

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

(継承元 Object)

明示的なインターフェイスの実装

ICollection.CopyTo(Array, Int32)

CollectionBase 全体を互換性のある 1 次元の Array にコピーします。コピー操作は、コピー先の配列の指定したインデックスから始まります。

(継承元 CollectionBase)
ICollection.IsSynchronized

CollectionBase へのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。

(継承元 CollectionBase)
ICollection.SyncRoot

CollectionBase へのアクセスを同期するために使用できるオブジェクトを取得します。

(継承元 CollectionBase)
IList.Add(Object)

CollectionBase の末尾にオブジェクトを追加します。

(継承元 CollectionBase)
IList.Contains(Object)

CollectionBase に特定の要素が格納されているかどうかを判断します。

(継承元 CollectionBase)
IList.IndexOf(Object)

指定した Object を検索し、CollectionBase 全体内で最初に見つかった位置の 0 から始まるインデックスを返します。

(継承元 CollectionBase)
IList.Insert(Int32, Object)

CollectionBase 内の指定したインデックスの位置に要素を挿入します。

(継承元 CollectionBase)
IList.IsFixedSize

CollectionBase が固定サイズかどうかを示す値を取得します。

(継承元 CollectionBase)
IList.IsReadOnly

CollectionBase が読み取り専用かどうかを示す値を取得します。

(継承元 CollectionBase)
IList.Item[Int32]

指定したインデックスにある要素を取得または設定します。

(継承元 CollectionBase)
IList.Remove(Object)

特定のオブジェクトが CollectionBase 内にあるときに、最初に出現したものを削除します。

(継承元 CollectionBase)

拡張メソッド

Cast<TResult>(IEnumerable)

IEnumerable の要素を、指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定された型に基づいて IEnumerable の要素をフィルター処理します。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください