Share via


DesignerActionList(IComponent) Construtor

Definição

Inicializa uma nova instância da classe DesignerActionList.

public:
 DesignerActionList(System::ComponentModel::IComponent ^ component);
public DesignerActionList (System.ComponentModel.IComponent component);
public DesignerActionList (System.ComponentModel.IComponent? component);
new System.ComponentModel.Design.DesignerActionList : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionList
Public Sub New (component As IComponent)

Parâmetros

component
IComponent

Um componente relacionado ao DesignerActionList.

Exemplos

O exemplo de código a seguir demonstra como criar uma coleção de DesignerActionItem objetos .

Para obter uma explicação completa desse exemplo de código, consulte Como anexar marcas inteligentes a um componente Windows Forms.

public ColorLabelActionList( IComponent component ) : base(component) 
{
    this.colLabel = component as ColorLabel;

    // Cache a reference to DesignerActionUIService, so the
    // DesigneractionList can be refreshed.
    this.designerActionUISvc =
        GetService(typeof(DesignerActionUIService))
        as DesignerActionUIService;
}
Public Sub New(ByVal component As IComponent)

    MyBase.New(component)
    Me.colLabel = component

    ' Cache a reference to DesignerActionUIService, so the
    ' DesigneractionList can be refreshed.
    Me.designerActionUISvc = _
    CType(GetService(GetType(DesignerActionUIService)), _
    DesignerActionUIService)

End Sub

Comentários

O DesignerActionList construtor define a AutoShow propriedade como false.

Aplica-se a