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


DesignerActionService.GetComponentDesignerActions Метод

Определение

Извлекает смарт-теги модели извлечения, связанные с компонентом.

protected:
 virtual void GetComponentDesignerActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::DesignerActionListCollection ^ actionLists);
protected virtual void GetComponentDesignerActions(System.ComponentModel.IComponent component, System.ComponentModel.Design.DesignerActionListCollection actionLists);
abstract member GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
override this.GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Protected Overridable Sub GetComponentDesignerActions (component As IComponent, actionLists As DesignerActionListCollection)

Параметры

component
IComponent

Компонент, с которым связаны смарт-теги.

actionLists
DesignerActionListCollection

Коллекция для добавления связанных смарт-тегов.

Исключения

Один или оба параметра являются null.

Комментарии

Этот GetComponentDesignerActions метод является вспомогательным методом для GetComponentActions методов. GetComponentDesignerActions выполняет поиск смарт-тегов Componentмодели по запросу, а затем добавляет их в предоставленную actionLists коллекцию.

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

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

См. также раздел