System.Web.UI.WebControls.WebParts.WebPart.ZoneIndex Property

Gets the index position of a System.Web.UI.WebControls.WebParts.WebPart control within its zone.

Syntax

public int ZoneIndex { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The WebPart.ZoneIndex property indicates a Web Parts control's numerical order (or ordinal position) within its zone, relative to other controls in the zone. The System.Web.UI.WebControls.WebParts.WebPartManager control uses this property to track and manage its collection of Web Parts controls on a Web page.

Note:

You cannot assume that the value of the WebPart.ZoneIndex property for a control will equal the index value for the same control within the WebPartZoneBase.WebParts collection of the control's zone. Often a control's relative position in its zone (its WebPart.ZoneIndex value), and its index within the WebPartZoneBase.WebParts collection of its zone, will be different values as controls are added to and removed from zones.

Requirements

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