DesignerActionList(IComponent) Konstruktor
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Inicializálja a DesignerActionList osztály új példányát.
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éterek
- component
- IComponent
Példák
Az alábbi példakód bemutatja, hogyan hozhat létre objektumgyűjteményt DesignerActionItem .
A példakód teljes magyarázatát a A következőhöz: Intelligens címkék csatolása Windows Forms összetevőhöz.
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
Megjegyzések
A DesignerActionList konstruktor a tulajdonságot a AutoShow következőre falseállítja: .