asp.net.ph

TreeView.HoverNodeStyle Property

System.Web.UI.WebControls Namespace   TreeView Class


.NET Framework version 2.0

Sets or retrieves the style properties for a node in a TreeView control when the mouse pointer is positioned over it.

Syntax


Script TreeView.HoverNodeStyle.Property [ = enumValue ]

Property Value

A Style object that defines the style properties for a node in a TreeView when the mouse pointer is positioned over it.

Remarks

Use the HoverNodeStyle property to specify the appearance of a node in a TreeView control when the mouse pointer is positioned over it. Common style attributes that can be set include forecolor, backcolor, font, and content alignment within the tree. Providing different node styles enhances the appearance of the TreeView control.

The HoverNodeStyle subproperties can be set declaratively using either of the following methods:

  • Include an attribute in the opening tag of the TreeView control in the form HoverNodeStyle-Property
    <asp:treeview ... 
       hovernodestyle-property=value
       ... >
    
    </asp:treeview>
  • Include a <HoverNodeStyle> element between the opening and closing tags of the TreeView control
    <asp:treeview ... >
    
       <hovernodestyle
          ... property definitions here />
    
    </asp:treeview>

The subproperties can also be set programmatically in the form HoverNodeStyle.Property.

Style properties are applied in the following order of precedence:

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

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

For a list of style properties that can be set, see the Style class.

See Also

TreeView Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph