System.Web.UI.WebControls.SiteMapPath.NodeStyle Property

Gets the style used for the display text for all nodes in the site navigation path.

Syntax

[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
[System.ComponentModel.DefaultValue(null)]
public Style NodeStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the SiteMapPath.NodeStyle property to control the appearance of the display text for all navigation path nodes rendered by the control. By default, the display text is that specified in the System.Web.SiteMapNode.Title property of the System.Web.SiteMapNode that represents the page. Common style settings include custom background color, foreground color, font properties, and node spacing.

For System.Web.UI.WebControls.SiteMapPath nodes, style properties are merged into a single style, in the following order:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]
Note:

If you set the node font style to a strikeout or overline style, the default underline style of the node is not displayed unless it is explicitly set to true.

If the SiteMapPath.NodeStyle is defined, it is initially applied to each node. If an additional style is defined for a particular type of node, such as the root node or current node, this style supersedes the general style specified in the SiteMapPath.NodeStyle property. If a template is defined for a particular type of node, it supersedes all defined styles for that node.

Requirements

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