Flexible TreeView Flexible TreeView


Support & Community

NodeLink node control

Previous Table of Contents Next

NodeLink allows you to display a hyperlink. To make link clicks respond, subscribe to the LinkClicked treeview event.

Example:

// create the node control.
NodeLink nc = new NodeLink();
nc.AttachTo(tree);
 
// add a node with the Link property.
NodeWithLink n = new NodeWithLink("Show features", "www.FlexibleTreeView.com/features.html");
n.AttachTo(tree);
 
tree.LinkClicked+=tree_LinkClicked;
 
// respond to link clicks.
void tree_LinkClicked(FlexibleTreeView pTreeview, LinkEventArgs pArgs)
{
  MessageBox.Show("Clicked link: " + pArgs.Link);
}


You can easily override the hyperlink appearance using these treeview properties:

  • TextStyle.LinkCursor – mouse cursor over hyperlink;
  • TextStyle.LinkStyle — hyperlink visual style;
  • TextStyle.LinkHotStyle – hyperlink under the mouse cursor visual style.

 

The LinkStyle and LinkHotStyle property values can be combined using any item from the eTextStyle enum.

Also, you can change the hyperlink color in the theme:

// in the global theme for all treeviews.
tree.Theme = eVisualTheme.Global;
ThemeManager.ActiveManager.Colors[eColor.LinkForeColor] = Color.Silver;
ThemeManager.ActiveManager.Colors[eColor.LinkForeColorHot] = Color.Black;
 
// or in the separate treeview`s personal theme.
tree. Colors[eColor.LinkForeColor] = Color.Silver;

Previous Top Next


Last news
Bookmark and Share
Use Flexible TreeView in WPF project
Sunday, 18 December 2011

Do you have a WPF project and want to use Flexible TreeView there? No problem!

Flexible TreeView v3.4
Friday, 16 December 2011

Flexible TreeView v3.4 maintenance release has been released.

Flexible TreeView v3.3
Friday, 23 September 2011

Flexible TreeView v3.3 maintenance release has been released. Separate assemblies for .NET 2.0, 4.0 and 4.0 Client Profile, HTML markup extension, etc.

Latest release

Version:
Release date:
3.4
Dec 16, 2011


Copyright © 2006-2012 ARMSoft. All rights reserved.