語言

DesignerActionService.GetComponentActions 方法

定義

回傳與元件相關聯的智慧標籤項目清單集合。

多載

名稱 Description
GetComponentActions(IComponent)

回傳與元件相關聯的智慧標籤項目清單集合。

GetComponentActions(IComponent, ComponentActionsType)

回傳與元件相關聯的指定類型智慧標籤項目清單集合。

GetComponentActions(IComponent, ComponentActionsType)

回傳與元件相關聯的指定類型設計者動作項目清單集合。

GetComponentActions(IComponent)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

回傳與元件相關聯的智慧標籤項目清單集合。

public:
 System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component);
member this.GetComponentActions : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionListCollection
Public Function GetComponentActions (component As IComponent) As DesignerActionListCollection

參數

component
IComponent

智慧標籤所關聯的元件。

傳回

指定元件的智慧標籤集合。

例外狀況

component 是 null。

備註

此GetComponentActions方法等價於使用GetComponentActions(IComponent, ComponentActionsType)參數 type的呼叫。All 因此,回傳的集合會同時包含智慧標籤的推送與拉取清單。

回傳 DesignerActionListCollection 的是透過 Add 方法新增的項目列表的聯集,以及從 DesignerCommandSet 元件網站取得的實例清單。

另請參閱

適用於

GetComponentActions(IComponent, ComponentActionsType)

回傳與元件相關聯的指定類型智慧標籤項目清單集合。

public:
 virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component, System.ComponentModel.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection

參數

component
IComponent

智慧標籤所關聯的元件。

type
ComponentActionsType

用 ComponentActionsType 來篩選相關的智慧標籤。

傳回

針對指定元件,所包含的指定類型的智慧標籤集合。

例外狀況

component 是 null。

備註

此版本的超載 GetComponentActions 方法會對 type 參數進行過濾,參數值可為以下之一。

價值觀 Description
All 所有相關的智慧標籤。
Component 僅限拉式智慧標籤。
Service 只使用推送式智慧標籤。

若元件的相關設計師未提供拉取式的智慧標籤清單,則該 GetComponentActions 方法將改為使用設計時的快捷選單項目 Verbs 。

另請參閱

適用於

GetComponentActions(IComponent, ComponentActionsType)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

回傳與元件相關聯的指定類型設計者動作項目清單集合。

public:
 virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component, System.Windows.Forms.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection

參數

component
IComponent

DesignerActions 所關聯的元件。

type
ComponentActionsType

用來 ComponentActionsType 篩選相關的設計動作。

傳回

針對指定元件,指定類型的設計動作集合。

例外狀況

component 是 null。

備註

此版本的超載 GetComponentActions 方法會對 type 參數進行過濾,參數值可為以下之一。

價值觀 Description
All 所有相關的設計行動。
Component 僅限拉取模型設計師動作。
Service 僅執行推入模型設計者動作。

若元件的相關設計師未提供拉取模型設計器動作清單,則 GetComponentActions 該方法將改用設計者在該屬性中設計時的快捷選單項目 Verbs 。

適用於