Share via


SPMobileNumberField.CreateControlForNew Method

Creates a control for rendering the field on a New item form.

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

Syntax

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

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

Return Value

Type: System.Web.UI.MobileControls.MobileControl
A MobileControl; specifically, a TextBox; that renders the field on a New form.

Remarks

This override calls the base method and appends a percentage sign "%" onto to the end if the ShowAsPercentage property (of the underlying SPFieldNumber object that is rendered by the SPMobileNumberField control) is true.

See Also

Reference

SPMobileNumberField Class

SPMobileNumberField Members

Microsoft.SharePoint.MobileControls Namespace