We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Need to disable the underlining of the node text

Hi All, I am using triewviewadv 3.3v.I need to disable the underlining of the node text when it is hottracked. Thanks in advance. Regards, Jonas

1 Reply

DT Deepa TS Syncfusion Team January 4, 2006 12:11 PM UTC

Hi Jonas, To disable underlining the TreeNodeAdv text when it is hot tracked, handle the TreeViewAdv''s BeforeNodePaint and AfterNodePaint events as shown below : Font oldfont = null; private void treeViewAdv1_BeforeNodePaint(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvPaintEventArgs e) { oldfont = e.Node.Font; if ((e.HotTracked) && (!e.Active)) { e.HotTracked = false; e.Node.Font = new Font("Times New Roman", 15, FontStyle.Italic); } } private void treeViewAdv1_AfterNodePaint(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvPaintEventArgs e) { e.Node.Font = oldfont; } Please refer to the attached sample that illustrates this and let me know if this meets your requirements. Thanks for your interest in Syncfusion products. Regards, Deepa.T.S

Hottracking.zip

Loader.
Live Chat Icon For mobile
Up arrow icon