SPMobileBaseFieldControl.TextLengthLimit Property

Gets the maximum number of characters that can be used in the field's value.

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

Syntax

'Declaration
Public Overrides ReadOnly Property TextLengthLimit As Integer
    Get
'Usage
Dim instance As SPMobileBaseFieldControl
Dim value As Integer

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

Property Value

Type: System.Int32
An Int32 that represents the largest possible size of any value in the field.

Remarks

For list view pages, the default implementation uses the TextLengthLimitKeyForView to look up the value in the mobile web.config file. Unless that file has been customized or TextLengthLimitKeyForView has been overridden, the value is 1024.

For other page or form types, the default implementation uses the value of the grandparent TextLengthLimit property. Unless the mobile web.config has been customized, the value is 255.

See Also

Reference

SPMobileBaseFieldControl Class

SPMobileBaseFieldControl Members

Microsoft.SharePoint.MobileControls Namespace