DesignerActionList(IComponent) Constructor

Definitie

Initialiseert een nieuw exemplaar van de DesignerActionList klasse.

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)

Parameters

component
IComponent

Een onderdeel dat is gerelateerd aan de DesignerActionList.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u een verzameling DesignerActionItem objecten maakt.

Zie Hoe to: Infolabels koppelen aan een Windows Forms-onderdeel voor een volledige uitleg van dit codevoorbeeld.

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

Opmerkingen

De DesignerActionList constructor stelt de AutoShow eigenschap in op false.

Van toepassing op