Share via


NumberField.ControlTemplate Property

Gets the template that renders the NumberField control in the current context.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides ReadOnly Property ControlTemplate As ITemplate
    Get
'Usage
Dim value As ITemplate

value = Me.ControlTemplate
protected override ITemplate ControlTemplate { get; }

Property Value

Type: System.Web.UI.ITemplate
A ITemplate that renders the control.

Remarks

The default implementation returns the AlternateTemplate if the ShowAsPercentage property (of the SPFieldNumber object that has NumberField as its FieldRenderingControl property) is true. Otherwise, it returns Template.

See Also

Reference

NumberField Class

NumberField Members

Microsoft.SharePoint.WebControls Namespace