ListFormWebPart.Template 属性
获取或设置模板,它定义的子控件的 Web 部件上的填充方式。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<TemplateContainerAttribute(GetType(TemplateContainer))> _
<WebPartStorageAttribute(Storage.None)> _
<BrowsableAttribute(False)> _
Public Property Template As ITemplate
Get
Set
用法
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; }
属性值
类型:System.Web.UI.ITemplate
定义如何填充的子控件模板。如果没有集,则返回当前TemplateName的模板。