SPMobileControlContainer.VisibleWeight Property

Gets the approximate weight of the control in characters.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public Overrides ReadOnly Property VisibleWeight As Integer
    Get

Dim instance As SPMobileControlContainer
Dim value As Integer

value = instance.VisibleWeight
public override int VisibleWeight { get; }

Property Value

Type: System.Int32
An Int32 that represents the weight of the control measured in characters.

Remarks

In Windows SharePoint Services 3.0 this property always returns either 0 or the value of the "mobile_paginationweight" key in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\MOBILE\web.config file. The key is set to 50 when Windows SharePoint Services 3.0 is installed, but it can be changed.

VisibleWeight is the value of the "mobile_paginationweight" unless the control is Weightless or the SPContext is a null reference (Nothing in Visual Basic).

For more information, see VisibleWeight and Pagination Support.

See Also

Reference

SPMobileControlContainer Class

SPMobileControlContainer Members

Microsoft.SharePoint.MobileControls Namespace

VisibleWeight

Other Resources

Pagination Support