Articles in this section
Category / Section

Is it possible to use use HTML tags in the Node's text of TreeView?

1 min read


Yes. You can use TreeViewNode.IsTextHtml property to use html tags in the Node Text.


//Get the node instance

TreeViewNode node = TreeView1.FindNode("Node");

node.IsTextHtml = true;

node.Text = "<b style=''''color: blue''''>Font";


''Get the node instance

Dim node As TreeViewNode = TreeView1.FindNode("Node")

node.IsTextHtml = True

node.Text = "<b style=''''color: blue''''>Font"

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment