System.Web.UI.WebControls.TreeView.HoverNodeStyle Property

Gets a reference to the System.Web.UI.WebControls.TreeNodeStyle object that allows you to set the appearance of a node when the mouse pointer is positioned over it.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeView.HoverNodeStyle property to control the appearance of a node when the mouse pointer is positioned over it. This property is read-only; however, you can set the properties of the System.Web.UI.WebControls.TreeNodeStyle object that it returns. The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the System.Web.UI.WebControls.TreeNodeStyle object (for example, HoverNodeStyle-ForeColor). The properties can also be set programmatically in the form Property.Subproperty (for example, HoverNodeStyle.ForeColor). This feature is supported only on script-capable clients.

Note:

To use the TreeView.HoverNodeStyle property, you must include a <head> element with a runat="server" attribute.

Common settings usually include a custom background color, foreground color, font properties, and node spacing. Style properties are applied in the following order:

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

The style settings for the TreeView.HoverNodeStyle property override any corresponding node style settings that are in the TreeView.NodeStyle, TreeView.RootNodeStyle, TreeView.ParentNodeStyle, TreeView.LeafNodeStyle, or TreeView.SelectedNodeStyle property.

The TreeView.HoverNodeStyle property is not rendered for a node with its TreeNode.SelectAction property set to TreeNodeSelectAction.None.

Unlike the TreeView.ParentNodeStyle and the TreeView.LeafNodeStyle properties, which are System.Web.UI.WebControls.TreeNodeStyle objects, the TreeView.HoverNodeStyle property is a System.Web.UI.WebControls.Style object.

Requirements

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