Share via


LevelHierarchyWebPart Class

Base class for Web Parts that render hierarchical data using XSL style sheets.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.SharePoint.Publishing.WebControls.CmsDataFormWebPart
                    Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyWebPart
                      

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class LevelHierarchyWebPart _
    Inherits CmsDataFormWebPart _
    Implements INamingContainer
'Usage
Dim instance As LevelHierarchyWebPart
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class LevelHierarchyWebPart : CmsDataFormWebPart, 
    INamingContainer

Remarks

Hierarchical data from a HierarchicalDataSource is rendered by this Web Part using the concept of levels and level styles. There are a maximum of three supported levels, and styles can be assigned to each of the three levels. For instance, given this hierarchical data structure: GroupA Item1 Item2 GroupB Item3 Item4 GroupC Item5 Item6 GroupD Item6 Item7 GroupA, Item1, Item2 are at Level1 GroupB, Item3, Item4 are at Level2 GroupC, Item5, Item6 are at Level2 GroupD, Item6, Item7 are at Level3. The level styling information is contained in an XSL style sheet; for an example, see LevelStyle.xsl.

This Web Part works in conjunction with the primary XSL style sheet that will allow the output to be displayed in columns and will display Title text above the hierarchical data if configured. The hierarchical data comes from a hierarchical data source and the number of levels of data to get is determined by properties that are set on this Web Part.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

LevelHierarchyWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.SharePoint.Publishing.WebControls.CmsDataFormWebPart
                    Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyWebPart
                      Microsoft.SharePoint.Portal.WebControls.CategoryWebPart
                      Microsoft.SharePoint.Publishing.WebControls.TableOfContentsWebPart