SiteMapPath::CurrentNodeStyle Property

 

Gets the style used for the display text for the current node.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
property Style^ CurrentNodeStyle {
	Style^ get();
}

Property Value

Type: System.Web.UI.WebControls::Style^

The Style that contains the style settings for the display text for the current node of the SiteMapPath control.

Use the CurrentNodeStyle property to control the appearance of the display text for the navigation path node that represents the currently displayed page. By default, the display text is that specified in the Title property of the SiteMapNode that represents the page. Common style settings include custom background color, foreground color, font properties, and node spacing.

For SiteMapPath nodes, style properties are merged into a single style, in the following order:

  1. NodeStyle

  2. CurrentNodeStyle or, if the currently displayed page is the root node, RootNodeStyle.

System_CAPS_noteNote

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 a CurrentNodeTemplate property is defined, the CurrentNodeStyle property is ignored.

The following code example demonstrates how to declaratively set the CurrentNodeStyle of a SiteMapPath control in a Web Forms page.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: