Class PageHierarchyData
Supports the PageDataSource control and provides an interface for hierarchical controls to extract hierarchical data from a PageData object.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class PageHierarchyData : IHierarchyData
Constructors
PageHierarchyData()
Initializes a new instance of the Page
Declaration
public PageHierarchyData()
PageHierarchyData(IPageSource)
Initializes a new instance of the Page
Declaration
public PageHierarchyData(IPageSource pageSource)
Parameters
Type | Name | Description |
---|---|---|
IPage |
pageSource | The page source to use for misc page requests. |
PageHierarchyData(PageData, IHierarchicalPageDataSource)
Initializes a new instance of the Page
Declaration
public PageHierarchyData(PageData page, IHierarchicalPageDataSource dataSource)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The PageData for the current node. |
IHierarchical |
dataSource | The associated PageDataSource instance. |
PageHierarchyData(PageData, IHierarchicalPageDataSource, IPageSource)
Initializes a new instance of the Page
Declaration
public PageHierarchyData(PageData page, IHierarchicalPageDataSource dataSource, IPageSource pageSource)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The PageData for the current node. |
IHierarchical |
dataSource | The associated PageDataSource instance. |
IPage |
pageSource | The page source to use for misc page requests. |
PageHierarchyData(PageData, IHierarchicalPageDataSource, Int32)
Initializes a new instance of the Page
Declaration
public PageHierarchyData(PageData page, IHierarchicalPageDataSource dataSource, int indent)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The PageData for the current node. |
IHierarchical |
dataSource | The associated PageDataSource instance. |
System. |
indent | The indent level of the page in the current tree structure. |
PageHierarchyData(PageData, IHierarchicalPageDataSource, Int32, IPageSource)
Initializes a new instance of the Page
Declaration
public PageHierarchyData(PageData page, IHierarchicalPageDataSource dataSource, int indent, IPageSource pageSource)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The PageData for the current node. |
IHierarchical |
dataSource | The associated PageDataSource instance. |
System. |
indent | The indent level of the page in the current tree structure. |
IPage |
pageSource | The page source to use for misc page requests. |
Properties
HasChildren
Indicates whether the hierarchical data node that the System.
Declaration
public bool HasChildren { get; }
Property Value
Type | Description |
---|---|
System. |
Indent
Gets the indent level of the page in the current tree structure.
Declaration
public int Indent { get; }
Property Value
Type | Description |
---|---|
System. |
The indent. |
Item
Gets the hierarchical data node that the System.
Declaration
public object Item { get; }
Property Value
Type | Description |
---|---|
System. |
Page
Gets the Page
Declaration
public PageData Page { get; }
Property Value
Path
Gets the hierarchical path of the node.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets the name of the type of System.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetChildren()
Gets an enumeration object that represents all the child nodes of the current hierarchical node.
Declaration
public IHierarchicalEnumerable GetChildren()
Returns
Type | Description |
---|---|
System. |
An System. |
GetParent()
Gets an enumeration object that represents the parent node of the current hierarchical node.
Declaration
public IHierarchyData GetParent()
Returns
Type | Description |
---|---|
System. |
An System. |