PartOrder Property
Collapse the table of content
Expand the table of content

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:
© 2016 Microsoft