Share via


ListFormWebPart.Template property

Gets or sets the template that defines how the child controls are populated on the Web Part.

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

Syntax

'Declaration
<TemplateContainerAttribute(GetType(TemplateContainer))> _
<WebPartStorageAttribute(Storage.None)> _
<BrowsableAttribute(False)> _
Public Property Template As ITemplate
    Get
    Set
'Usage
Dim instance As ListFormWebPart
Dim value As ITemplate

value = instance.Template

instance.Template = value
[TemplateContainerAttribute(typeof(TemplateContainer))]
[WebPartStorageAttribute(Storage.None)]
[BrowsableAttribute(false)]
public ITemplate Template { get; set; }

Property value

Type: System.Web.UI.ITemplate
The template that defines how the child controls are populated. If not set, the template for the current TemplateName is returned.

See also

Reference

ListFormWebPart class

ListFormWebPart members

Microsoft.SharePoint.WebPartPages namespace