Share via


LevelHierarchyWebPart.Level1Style Property

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

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

Syntax

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

value = instance.Level1Style

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

Property Value

Type: System.String
The name of the XSL template to use to display first level data.

Remarks

For the Web Part to render a level, the Web Part must be associated with an XSL stylesheet that either contains or imports a template with a name that matches the first level style name. The default value is VerticalBold.

See Also

Reference

LevelHierarchyWebPart Class

LevelHierarchyWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace