DesignerActionList(IComponent) Constructor
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.