DesignerActionList(IComponent) Costruttore

Definizione

Inizializza una nuova istanza della classe DesignerActionList.Initializes a new instance of the DesignerActionList class.

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)

Parametri

component
IComponent

Un componente correlato a DesignerActionList.A component related to the DesignerActionList.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come creare DesignerActionItem una raccolta di oggetti.The following code example demonstrates how to create a collection of DesignerActionItem objects.

Per una spiegazione completa di questo esempio di codice, vedere Procedura: Consente di connettere smart tag a uncomponente Windows Forms.For a complete explanation of this code example, see How to: Attach Smart Tags to a Windows Forms Component.

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

Commenti

Il DesignerActionList costruttore imposta la AutoShow proprietà su false.The DesignerActionList constructor sets the AutoShow property to false.

Si applica a