System.Web.UI.WebControls.SiteMapPath.PathDirection Property

Gets or sets the order that the navigation path nodes are rendered in.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.PathDirection.RootToCurrent)]
public virtual PathDirection PathDirection { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Set SiteMapPath.PathDirection to PathDirection.RootToCurrent if you want to display the navigation path from left to right; 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.

Set SiteMapPath.PathDirection to PathDirection.CurrentToRoot if you want to display the navigation path from right to left. 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 System.Web.UI.WebControls.SiteMapPath control for languages that read from right to left.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0