FieldLabel.DisplayTemplateName Property

Gets or sets the name of the ITemplate object that is used for display mode.

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

Syntax

'Declaration
Public Property DisplayTemplateName As String
    Get
    Set
'Usage
Dim instance As FieldLabel
Dim value As String

value = instance.DisplayTemplateName

instance.DisplayTemplateName = value
public string DisplayTemplateName { get; set; }

Property Value

Type: System.String
A String that names a rendering template.

Remarks

If it has not already been set to something else, DisplayTemplateName returns DefaultDisplayTemplateName.

It is possible for DisplayTemplate to be set to a template other than the one that is named by DisplayTemplateName. Hence, when your code sets DisplayTemplate, it should also set DisplayTemplateName to the name of the same ITemplate object. Similarly, when your code sets DisplayTemplateName, it should also set DisplayTemplate to the same ITemplate object.

If the two properties have inconsistent values, DisplayTemplate determines the template that is used for rendering the field.

See Also

Reference

FieldLabel Class

FieldLabel Members

Microsoft.SharePoint.WebControls Namespace