LevelHierarchyWebPart.DisplayColumns Property
Gets or sets the number of columns used to render levels.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property DisplayColumns As Integer
Get
Set
'Usage
Dim instance As LevelHierarchyWebPart
Dim value As Integer
value = instance.DisplayColumns
instance.DisplayColumns = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public int DisplayColumns { get; set; }
Property Value
Type: System.Int32
Remarks
A column will only start at Level1. In order for more than one column to be rendered, there must be more than one Level1 level specified. The default value is 3. If a negative number or 0 is passed to the setter property, a value of 1 is assumed.