Share via


LevelHierarchyWebPart.Level2Style property

Gets or sets the style used to display items in the second level data.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property Level2Style As String
    Get
    Set
'Usage
Dim instance As LevelHierarchyWebPart
Dim value As String

value = instance.Level2Style

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

Property value

Type: System.String
The name of the XSL template used to display second level data.

Remarks

In order for the Web Part to render a level, the Web Part must be associated with an XSL style sheet that either contains or imports a template with a name that matches the second level style name. The default value is Vertical.

See also

Reference

LevelHierarchyWebPart class

LevelHierarchyWebPart members

Microsoft.SharePoint.Publishing.WebControls namespace