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)
Syntax
'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property LevelsToShow As Integer
Get
Set
'Usage
Dim instance As LevelHierarchyWebPart
Dim value As Integer
value = instance.LevelsToShow
instance.LevelsToShow = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public int LevelsToShow { get; set; }
Property Value
Type: System.Int32
Remarks
This information is passed to the LevelHierarchyDataSource to control the number of levels of data to get. The default value is 2.