System.Web.UI.WebControls Namespace SiteMapPath Class
.NET Framework version 2.0
Specifies the order in which the navigation path nodes in a SiteMapPath control are rendered.
Inline |
<asp:sitemappath pathdirection = enumValue ... > |
Script |
SiteMapPath.PathDirection = enumValue |
The property is read/write with a default value of RootToCurrent, which indicates that the nodes are rendered in hierarchical order from the top-most node to the current node, from left to right.
Use the PathDirection property to specify the hierarchical order in which the navigation path nodes in a SiteMapPath control are rendered.
By default, the navigation path appears as a progression from left to right of site map nodes. In other words, the root node is at the leftmost position, each subsequent node is in the next position to the right, and the current node is in the rightmost position.
To display the navigation path from right to left, set PathDirection to CurrentToRoot. In other words, the node order is reversed so that the root node displays at the rightmost position and the current node displays at the leftmost position. While not as common, this ordering can be used for localizing Web Forms pages and the SiteMapPath control for languages that read from right to left.
SiteMapPath Members