TemplatePicker.TemplateTypesToShow property

Determines which types of templates to show in the template picker.

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

Syntax

'Declaration
Public Property TemplateTypesToShow As TemplatePicker.TemplateTypes
    Get
    Set
'Usage
Dim instance As TemplatePicker
Dim value As TemplatePicker.TemplateTypes

value = instance.TemplateTypesToShow

instance.TemplateTypesToShow = value
public TemplatePicker.TemplateTypes TemplateTypesToShow { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.TemplatePicker.TemplateTypes

Remarks

The template picker always shows regular templates i.e. ones that do not specify RootWebOnly or SubWebOnly. Set this to "RootWeb" to show RootWebOnly templates as well. Set this to "SubWeb" to show SubWebOnly templates as well. Set this to "ContextSensitive", or leave unspecified, to just show regular templates (the default behavior).

See also

Reference

TemplatePicker class

TemplatePicker members

Microsoft.SharePoint.WebControls namespace