DesignerActionListCollection Class
Assembly: System.Design (in system.design.dll)
'Declaration <ComVisibleAttribute(True)> _ Public Class DesignerActionListCollection Inherits CollectionBase 'Usage Dim instance As DesignerActionListCollection
/** @attribute ComVisibleAttribute(true) */ public class DesignerActionListCollection extends CollectionBase
ComVisibleAttribute(true) 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.
| Technique | Description |
|---|---|
| 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.
- NamedPermissionSet for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state: FullTrust
System.Collections.CollectionBase
System.ComponentModel.Design.DesignerActionListCollection
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.