WebPartManagerInternals.SetZoneIndex Method

Sets the index of the specified controlwithin its zone relative to the other WebPart controls within the zone.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public:
void SetZoneIndex (
	WebPart^ webPart, 
	int zoneIndex
)
public void SetZoneIndex (
	WebPart webPart, 
	int zoneIndex
)
public function SetZoneIndex (
	webPart : WebPart, 
	zoneIndex : int
)
Not applicable.

Parameters

webPart

A WebPart control for which the method sets a zone index.

zoneIndex

The index of webPart within its zone relative to other controls in the zone.

The SetZoneIndex method determines the ordinal position that webPart occupies in its zone, relative to other server controls in the zone.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: