DesignerActionService.GetComponentActions Metoda

Definice

Vrátí kolekci seznamů položek inteligentních značek přidružených k komponentě.

Přetížení

GetComponentActions(IComponent)

Vrátí kolekci seznamů položek inteligentních značek přidružených k komponentě.

GetComponentActions(IComponent, ComponentActionsType)

Vrátí kolekci seznamů položek inteligentních značek zadaného typu přidruženého k komponentě.

GetComponentActions(IComponent, ComponentActionsType)

Vrátí kolekci seznamů položek akce návrháře zadaného typu přidruženého k komponentě.

GetComponentActions(IComponent)

Vrátí kolekci seznamů položek inteligentních značek přidružených k komponentě.

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

Komponenta, ke které jsou inteligentní značky přidruženy.

Návraty

Kolekce inteligentních značek pro zadanou komponentu.

Výjimky

comp je null.

Poznámky

Metoda GetComponentActions je ekvivalentní volání GetComponentActions(IComponent, ComponentActionsType) metody pomocí parametru typeAll. Vrácená kolekce proto bude obsahovat seznamy nabízených změn i přijetí změn inteligentních značek.

Vrácená DesignerActionListCollection hodnota je sjednocení seznamů položek přidaných prostřednictvím Add metod a také seznamů získaných z DesignerCommandSet instance získané z webu komponenty.

Viz také

Platí pro

GetComponentActions(IComponent, ComponentActionsType)

Vrátí kolekci seznamů položek inteligentních značek zadaného typu přidruženého k komponentě.

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

Komponenta, ke které jsou inteligentní značky přidruženy.

type
ComponentActionsType

Filtr ComponentActionsType pro filtrování přidružených inteligentních značek.

Návraty

Kolekce inteligentních značek zadaného typu pro zadanou komponentu.

Výjimky

comp je null.

Poznámky

Tato verze přetížené GetComponentActions metody filtruje type parametr, který může mít jednu z následujících hodnot.

Hodnota Popis
All Všechny přidružené inteligentní značky.
Component Vyžádat pouze inteligentní značky modelu.
Service Push-model pouze inteligentní značky.

Pokud přidružený návrhář pro komponentu nezadá seznam inteligentních značek modelu vyžádání, pak GetComponentActions metoda místo toho použije položky místní nabídky návrháře v době návrhu Verbs z vlastnosti.

Viz také

Platí pro

GetComponentActions(IComponent, ComponentActionsType)

Vrátí kolekci seznamů položek akce návrháře zadaného typu přidruženého k komponentě.

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

Komponenta, ke které jsou přidruženy DesignerActions.

type
ComponentActionsType

Chcete-li ComponentActionsType filtrovat přidružené akce návrháře.

Návraty

Kolekce akcí návrháře zadaného typu pro zadanou komponentu.

Výjimky

component je null.

Poznámky

Tato verze přetížené GetComponentActions metody filtruje type parametr, který může mít jednu z následujících hodnot.

Hodnota Popis
All Všechny přidružené akce návrháře.
Component Pouze akce návrháře modelu pro vyžádání změn
Service Pouze akce návrháře nabízených modelů

Pokud přidružený návrhář pro komponentu nezadá seznam akcí návrháře modelu vyžádání, pak GetComponentActions metoda místo toho použije položky místní nabídky návrháře v době návrhu Verbs z vlastnosti.

Platí pro