This topic has not yet been rated - Rate this topic

LevelHierarchyWebPart.LevelsToShow Property

Gets or sets the number of levels to show in this Web Part.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public int LevelsToShow { get; set; }

Property Value

Type: System.Int32
An int that contains the number of levels to show in this Web Part.

This information is passed to the LevelHierarchyDataSource to control the number of levels of data to get. The default value is 2.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ