DesignerActionService.GetComponentActions Metoda

Definicja

Zwraca kolekcję list elementów tagów inteligentnych skojarzonych ze składnikiem.

Przeciążenia

GetComponentActions(IComponent)

Zwraca kolekcję list elementów tagów inteligentnych skojarzonych ze składnikiem.

GetComponentActions(IComponent, ComponentActionsType)

Zwraca kolekcję list elementów tagów inteligentnych określonego typu skojarzonego ze składnikiem.

GetComponentActions(IComponent, ComponentActionsType)

Zwraca kolekcję listy elementów akcji projektanta określonego typu skojarzonego ze składnikiem.

GetComponentActions(IComponent)

Zwraca kolekcję list elementów tagów inteligentnych skojarzonych ze składnikiem.

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

Parametry

component
IComponent

Składnik skojarzony z tagami inteligentnymi.

Zwraca

Kolekcja tagów inteligentnych dla określonego składnika.

Wyjątki

comp to null.

Uwagi

Metoda GetComponentActions jest równoważna wywołaniu GetComponentActions(IComponent, ComponentActionsType) metody przy użyciu type parametru All. W związku z tym zwrócona kolekcja będzie zawierać zarówno listy wypychania, jak i ściągnięcia tagów inteligentnych.

Zwracany DesignerActionListCollection element jest połączeniem list elementów dodanych za pośrednictwem Add metod, a także list uzyskanych z wystąpienia uzyskanego z DesignerCommandSet lokacji składnika.

Zobacz też

Dotyczy

GetComponentActions(IComponent, ComponentActionsType)

Zwraca kolekcję list elementów tagów inteligentnych określonego typu skojarzonego ze składnikiem.

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

Parametry

component
IComponent

Składnik skojarzony z tagami inteligentnymi.

type
ComponentActionsType

Element ComponentActionsType do filtrowania skojarzonych tagów inteligentnych.

Zwraca

Kolekcja tagów inteligentnych określonego typu dla określonego składnika.

Wyjątki

comp to null.

Uwagi

Ta wersja przeciążonej GetComponentActions metody filtruje parametr type , który może mieć jedną z następujących wartości.

Wartość Opis
All Wszystkie skojarzone tagi inteligentne.
Component Tylko tagi inteligentne modelu ściągania.
Service Tylko tagi inteligentne modelu wypychania.

Jeśli skojarzony projektant składnika nie dostarcza listy tagów inteligentnych modelu ściągania, GetComponentActions metoda zamiast tego użyje elementów menu skrótów czasu projektowania projektanta z Verbs właściwości .

Zobacz też

Dotyczy

GetComponentActions(IComponent, ComponentActionsType)

Zwraca kolekcję listy elementów akcji projektanta określonego typu skojarzonego ze składnikiem.

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

Parametry

component
IComponent

Składnik skojarzony z elementem DesignerActions.

type
ComponentActionsType

Element do filtrowania ComponentActionsType skojarzonych akcji projektanta za pomocą polecenia .

Zwraca

Kolekcja akcji projektanta określonego typu dla określonego składnika.

Wyjątki

component to null.

Uwagi

Ta wersja przeciążonej GetComponentActions metody filtruje parametr type , który może mieć jedną z następujących wartości.

Wartość Opis
All Wszystkie skojarzone akcje projektanta.
Component Tylko akcje projektanta ściągania.
Service Tylko akcje projektanta modelu wypychania.

Jeśli skojarzony projektant składnika nie dostarcza listy akcji projektanta modelu ściągania, GetComponentActions metoda zamiast tego użyje elementów menu skrótów czasu projektowania projektanta z Verbs właściwości .

Dotyczy