I have a treeview in my C# code. I want to replace all existing occurences of a tree node with a different text in my entire treeview upon a button click.
For Example, I have 3 occurences of a node with 'Text' as "Manual". I want to replace all of these 3 nodes with the text "Automatic". The problem is that these 3 nodes are under 3 different branches in the treeview. They do not share the same parent node. I intend to write to make this process automatic by writing a for loop but I dont understand how to find the required 3 nodes in the first place.