Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Mega888 – 918indo.com  (Read 7820 times)

0 Members and 1 Guest are viewing this topic.

Emmanuel

  • Guest
Mega888 – 918indo.com
« on: December 06, 2009, 05:15:02 PM »
Mega888 – 918indo.com   Mega888 – 918indo.com!..
« Last Edit: July 27, 2019, 09:15:36 AM by Emmanuel »

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 938
Re: Find a Node in a treeview having the text value
« Reply #1 on: December 06, 2009, 06:15:03 PM »
Hello,

Sure you can. Use the FindChildNodeByXXX node methods. You can search by text (by the Text node property) using the FindChildNodeByText, by the Id node property (for nodes, inherited from the IIndexableNode interface) using the FindChildNodeById method and by the Tag node property using the FindChildNodeByTag method.
Also, you can search either within the specified node or within that node and all children nodes. Please, see these methods overload with the second parameter.

Example:
Code: [Select]
// to search within all treeview nodes:
tree.Root.FindChildNodeByText("text to search");

// to search only within root-level treeview nodes:
tree.Root.FindChildNodeByText("text to search", true);
Pages: [1]   Go Up
« previous next »
 

Copyright © 2006-2017 ARMSoft. All rights reserved.