DesignerActionService.Add メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
マネージド スマート タグの現在のコレクションに 1 つ以上の DesignerActionList オブジェクトを追加します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Add(IComponent, DesignerActionList) |
マネージド スマート タグの現在のコレクションに DesignerActionList を追加します。 |
| Add(IComponent, DesignerActionListCollection) |
マネージド スマート タグの現在のコレクションに DesignerActionListCollection を追加します。 |
Add(IComponent, DesignerActionList)
マネージド スマート タグの現在のコレクションに 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 イベントを発生させます。
こちらもご覧ください
- DesignerActionList
- ActionLists
- Remove
- Contains(IComponent)
- Windows フォームのデザイナー コマンドと DesignerAction オブジェクト モデル
適用対象
Add(IComponent, DesignerActionListCollection)
マネージド スマート タグの現在のコレクションに 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 イベントを発生させます。
こちらもご覧ください
- DesignerActionList
- ActionLists
- Remove
- Contains(IComponent)
- Windows フォームのデザイナー コマンドと DesignerAction オブジェクト モデル