SiteMapPath::CurrentNodeStyle Property
Gets the style used for the display text for the current node.
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:
CurrentNodeStyle or, if the currently displayed page is the root node, RootNodeStyle.
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 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.
Available since 2.0
