DesignerActionList(IComponent) Constructeur

Définition

Initialise une nouvelle instance de la 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)

Paramètres

component
IComponent

Composant lié à DesignerActionList.

Exemples

L’exemple de code suivant montre comment créer une collection d’objets DesignerActionItem .

Pour obtenir une explication complète de cet exemple de code, consultez Guide pratique pour attacher des balises actives à un composant 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

Remarques

Le DesignerActionList constructeur affecte à la propriété la AutoShow valeur false.

S’applique à