Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
0 de 1 pessoas classificaram isso como útil - Avalie este tópico

DesignerActionList Classe

Provides for Types that define a lista of Items Used to the classe base Criar a painel marca inteligente.

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (em System.Design. dll)
public class DesignerActionList

The DesignerAction feature enables components and controls to display context-sensitive information and commands.The DesignerAction feature can be thought of as a replacement for designer verbs, because a DesignerActionItem can be displayed in the smart tag panel and also in the shortcut menu associated with a component or control.The DesignerActionList class represents the main point of interaction for developers who want to add smart tag support to their custom components and controls.

DesignerActionList is the base class, derived from by component developers in order to populate a smart tag panel.Um painel de marca inteligente representa a interface menu-como usuário (UI) de marcas inteligentes.

This derived class may implement the virtualGetSortedActionItems method to return a collection of objects derived from DesignerActionItem.Esses objetos representam os itens do Painel de marca inteligente.Cada item é exibido no painel de acordo com a seu tipo.For example, a DesignerActionTextItem is displayed as a static text label.Active panel items, represented by the DesignerActionPropertyItem and DesignerActionMethodItem types, have a corresponding publicly accessible property or method, respectively, that implements the functionality for that item.

For more information about how to add items to the smart tag panel, see the GetSortedActionItems method.

ObservaçãoObservação:

Forms and dialog boxes can be displayed by members of the class derived from DesignerActionList.Por padrão, the pai of these Windows will be the janela contêiner for the painel marca inteligente.Explicitamente parenting these Windows filho to another serviço or janela May inteligente causar tags to exibir de modo inadequado.

Painéis de marca inteligente não oferece suporte a rolagem ou paginação, portanto, tenha cuidado para não preencher suas painéis com muitos itens de marca inteligente.Muitos itens podem resultar em Painel de marca inteligente estendendo além do limite da tela.

The following code example demonstrates how to create a collection of DesignerActionItem objects.

For a complete explanation of this code example, see HOW TO: Anexar as marcas inteligentes a um componente Windows Formulários.

public class ColorLabelActionList :
          System.ComponentModel.Design.DesignerActionList


System.Object
  System.ComponentModel.Design.DesignerActionList
Quaisquer membros públicos estático (compartilhados na Visual Basic) desse tipo são Thread seguro. Não há garantia de que qualquer membro de instância seja isento de segmentos.
Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.