แก้ไข

แชร์ผ่าน


WebPartMovingEventArgs.ZoneIndex Property

Definition

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

public:
 property int ZoneIndex { int get(); void set(int value); };
public int ZoneIndex { get; set; }
member this.ZoneIndex : int with get, set
Public Property ZoneIndex As Integer

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 moved in the WebPartMoving event. The WebPartManager control uses this property to track and manage its collection of Web Parts controls on a Web page.

Important

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