Share via


TableOfContentsWebPart.ShowPages Property

Gets or sets a value that indicates whether to show Web pages.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property ShowPages As Boolean
    Get
    Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As Boolean

value = instance.ShowPages

instance.ShowPages = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public bool ShowPages { get; set; }

Property Value

Type: System.Boolean
The default value is true.

Remarks

The Web Part can be configured to show or hide pages. If this property is set to true, the Web Part will show Web pages, otherwise, it will hide Web pages.

See Also

Reference

TableOfContentsWebPart Class

TableOfContentsWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace