WebPartAddingEventArgs.ZoneIndex Property

Definition

Gets or sets the index position of a WebPart control within its zone.

C#
public int ZoneIndex { get; set; }

Property Value

The numerical order of a control within its zone. The first control in a zone has an index value of zero.

Remarks

The ZoneIndex property indicates the numerical order (or ordinal position) within the zone for the Web Parts control being added in the WebPartAdded event. The WebPartManager control uses this property to track and manage its collection of Web Parts controls on a Web page.

Wichteg

The value of the ZoneIndex property for a control might not equal the index value for the same control within the WebParts collection.

Applies to

Produkt Versiounen
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1