Partager via


SPMobileChoiceField.CreateControlForDisplay - Méthode

Crée un contrôle enfant Label qui restitue la valeur actuelle du champ dans une page d'affichage, soumis à des limites de rendu.

Espace de noms :  Microsoft.SharePoint.Mobile.WebControls
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Protected Overrides Function CreateControlForDisplay As Control
'Utilisation
Dim returnValue As Control

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

Valeur renvoyée

Type : System.Web.UI.Control
Un MobileControl (plus précisément, un Label) qui restitue la valeur actuelle du champ.

Remarques

Si le champ est un champ de choix, seulement l'option choisie DisplaySelectionNumberLimit s'affiche. En outre, une option donnée est tronquée s'il dépasse OptionTextLengthLimit.

Voir aussi

Référence

SPMobileChoiceField classe

SPMobileChoiceField - Membres

Microsoft.SharePoint.Mobile.WebControls - Espace de noms