FieldLabel.ControlTemplate Property
Gets the template that renders the field label 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
When the control mode of the current context is Display, ControlTemplate returns DisplayTemplate. Otherwise, it returns AlternateTemplate when the field is required and Template when it is not required.