Export (0) Print
Expand All
Expand Minimize

WebPart.PartOrder Property

NOTE: This API is now obsolete.

Gets or sets the order in which the Web Part appears within a Web Part zone.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

[ObsoleteAttribute("Use ZoneIndex instead.")]
[WebPartStorageAttribute(Storage = Storage.Personal)]
public int PartOrder { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that specifies the order for the Web Part within a WebPartZone control.

Lower order number values for the PartOrder property are placed at the top or to the left within a Web Part zone (depending on the orientation of the zone). If two Web Parts within the same zone have the same PartOrder value, the resulting order between the two parts is undefined.

Show:
© 2014 Microsoft