DesignerActionListCollection Class

Represents a collection of DesignerActionList objects.

Namespace: System.ComponentModel.Design
Assembly: System.Design (in

public class DesignerActionListCollection : CollectionBase
/** @attribute ComVisibleAttribute(true) */ 
public class DesignerActionListCollection extends CollectionBase
public class DesignerActionListCollection extends CollectionBase
Not applicable.

The DesignerActionListCollection class represents the aggregation of all the items in a smart tag panel. The DesignerActionListCollection class contains zero or more DesignerActionList objects. Each of these lists contains zero or more objects that represent the actual items in the panel and are derived from the DesignerActionItem class.

The following table shows the two techniques for supplying a DesignerActionListCollection to populate the panel with items for components, including custom controls.



Pull model

The designer for the component class, which is derived from the ComponentDesigner class, supplies this collection through the ActionLists property. The designer infrastructure reads this property when it must display the panel.

Push model

A DesignerActionList or DesignerActionListCollection is supplied as a parameter in a call to the Add method of the DesignerActionService associated with the component.

The designer infrastructure constructs a panel by creating a smart tag panel, whose constructor takes two parameters of type DesignerActionListCollection. The collections of lists, which contain the pulled and pushed items, are merged into one panel.

Because it derives from the System.Collections.CollectionBase class, DesignerActionListCollection uses an internal ArrayList to store its collection of DesignerActionList objects.

The following code example demonstrates how to create a collection of DesignerActionItem objects.

For a full example, see How to: Attach Smart Tags to a Windows Forms Component.

private DesignerActionListCollection actionLists;

public override DesignerActionListCollection ActionLists
        if (null == actionLists)
            actionLists = new DesignerActionListCollection();
                new ColorLabelActionList(this.Component));
        return actionLists;


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0