System.Web.UI.WebControls.WebParts.EditorPartCollection Class

Contains a collection of System.Web.UI.WebControls.WebParts.EditorPart controls used for editing the properties, layout, appearance, and behavior of System.Web.UI.WebControls.WebParts.WebPart controls. This class cannot be inherited.

See Also: EditorPartCollection Members


public sealed class EditorPartCollection : ReadOnlyCollectionBase


The System.Web.UI.WebControls.WebParts.EditorPartCollection class is a read-only collection of System.Web.UI.WebControls.WebParts.EditorPart controls, typically used by an System.Web.UI.WebControls.WebParts.EditorZoneBase zone to track the set of System.Web.UI.WebControls.WebParts.EditorPart controls contained by the zone.

When a Web Parts page enters edit mode, and a user selects a control to edit, the editing process begins. The zone creates a new System.Web.UI.WebControls.WebParts.EditorPartCollection object consisting of the System.Web.UI.WebControls.WebParts.EditorPart controls contained by the zone. At various phases in the editing process, the zone accesses the System.Web.UI.WebControls.WebParts.EditorPartCollection object to save or retrieve property values between the System.Web.UI.WebControls.WebParts.EditorPart controls in the collection and the System.Web.UI.WebControls.WebParts.WebPart control currently being edited.

You can create an System.Web.UI.WebControls.WebParts.EditorPartCollection collection of controls for your own programmatic use if, for example, you need to perform some mass operation on a set of System.Web.UI.WebControls.WebParts.EditorPart controls. Even though the System.Web.UI.WebControls.WebParts.EditorPartCollection object is read-only, you can make programmatic changes to the properties of the underlying controls referenced in the collection.


Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0