次の方法で共有


DesignerActionService.Add メソッド

定義

マネージド スマート タグの現在のコレクションに 1 つ以上の DesignerActionList オブジェクトを追加します。

オーバーロード

名前 説明
Add(IComponent, DesignerActionList)

マネージド スマート タグの現在のコレクションに DesignerActionList を追加します。

Add(IComponent, DesignerActionListCollection)

マネージド スマート タグの現在のコレクションに DesignerActionListCollection を追加します。

Add(IComponent, DesignerActionList)

ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs

マネージド スマート タグの現在のコレクションに DesignerActionList を追加します。

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionList ^ actionList);
public void Add(System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionList actionList);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Add (comp As IComponent, actionList As DesignerActionList)

パラメーター

comp
IComponent

スマート タグを関連付ける IComponent

actionList
DesignerActionList

追加する新しいスマート タグ項目を含む DesignerActionList

例外

パラメーターの一方または両方が null

注釈

Add メソッドは、スマート タグ項目を追加するプッシュ モデルを表します。 代替プル モデルは、対応するコンポーネントのデザイナーで ActionLists プロパティをオーバーライドすることに依存します。

このメソッドが呼び出されると、追加するリストがスキャンされ、IncludeAsDesignerVerb プロパティが true に設定されたDesignerActionMethodItemが検索されます。 これらの項目は、 MenuCommandService.AddVerb メソッドの呼び出しを通じて、このコンポーネントのデザイナー動詞の一覧に追加されます。

スマート タグは、コンポーネント インスタンスごとに管理されます。 マネージド コレクションに重複するエントリが含まれている場合があります。

このメソッドは、 DesignerActionListsChanged イベントを発生させます。

こちらもご覧ください

適用対象

Add(IComponent, DesignerActionListCollection)

ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs
ソース:
DesignerActionService.cs

マネージド スマート タグの現在のコレクションに DesignerActionListCollection を追加します。

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionListCollection ^ designerActionListCollection);
public void Add(System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionListCollection designerActionListCollection);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Public Sub Add (comp As IComponent, designerActionListCollection As DesignerActionListCollection)

パラメーター

comp
IComponent

スマート タグを関連付ける IComponent

designerActionListCollection
DesignerActionListCollection

追加する新しいスマート タグ項目を含む DesignerActionListCollection

例外

パラメーターの一方または両方が null

注釈

Add メソッドは、スマート タグ項目を追加するプッシュ モデルを表します。 代替プル モデルは、対応するコンポーネントのデザイナーで ActionLists プロパティをオーバーライドすることに依存します。

このメソッドが呼び出されると、追加するリストがスキャンされ、IncludeAsDesignerVerb プロパティが true に設定されたDesignerActionMethodItemが検索されます。 これらの項目は、 MenuCommandService.AddVerb メソッドの呼び出しを通じて、このコンポーネントのデザイナー動詞の一覧に追加されます。

スマート タグは、コンポーネント インスタンスごとに管理されます。 マネージド コレクションに重複するエントリが含まれている場合があります。

このメソッドは、 DesignerActionListsChanged イベントを発生させます。

こちらもご覧ください

適用対象