Condividi tramite


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

Syntax

'Declaration
<ObsoleteAttribute("Use ZoneIndex instead.")> _
<WebPartStorageAttribute(Storage := Storage.Personal)> _
Public Property PartOrder As Integer
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As Integer

value = instance.PartOrder

instance.PartOrder = value
[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.

Remarks

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.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace