Поделиться через


DesignerActionService.GetComponentActions Метод

Определение

Возвращает коллекцию списков элементов смарт-тегов, связанных с компонентом.

Перегрузки

Имя Описание
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 , который может иметь одно из следующих значений.

Ценность Описание
All Все связанные смарт-теги.
Component Только смарт-теги модели извлечения.
Service Только смарт-теги модели push-модели.

Если связанный конструктор для компонента не предоставляет список смарт-тегов модели по запросу, 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 , который может иметь одно из следующих значений.

Ценность Описание
All Все связанные действия конструктора.
Component Действия конструктора моделей по запросу.
Service Только действия конструктора push-моделей.

Если связанный конструктор для компонента не предоставляет список действий конструктора по запросу, GetComponentActions метод вместо этого Verbs будет использовать элементы контекстного меню конструктора конструктора из свойства.

Применяется к