LevelHierarchyWebPart Class
Represents the base class for Web Parts that render hierarchical data using Extensible Stylesheet Language (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 by 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 example, given this hierarchical data structure:
GroupA Item1 Item2
GroupA is Level1; GroupB is Level2; GroupC is Level2; GroupD is 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 enables the output to be displayed in columns and that, if configured, displays Title text above the hierarchical data. The hierarchical data is 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
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.Publishing.WebControls.TableOfContentsWebPart