SPMobileChoiceField.CreateControlForDisplay Method

Creates a child Label control that renders the current value of the field on a Display page, subject to rendering limits.

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

Syntax

'Declaration
Protected Overrides Function CreateControlForDisplay As MobileControl
'Usage
Dim returnValue As MobileControl

returnValue = Me.CreateControlForDisplay()
protected override MobileControl CreateControlForDisplay()

Return Value

Type: System.Web.UI.MobileControls.MobileControl
A MobileControl (specifically, a Label) that renders the current value of the field.

Remarks

If the field is a multichoice field, only the chosen option up to DisplaySelectionNumberLimit is displayed. Also, any given option is truncated if it exceeds OptionTextLengthLimit.

See Also

Reference

SPMobileChoiceField Class

SPMobileChoiceField Members

Microsoft.SharePoint.MobileControls Namespace