Find or Search fetaure in Go Diagram


I want to implement Find(Ctrl+F) or Search type feature in my application.
So that user can search any node easily.and when it find that node then it should be highlighted.
please give if it possible.

Yes, you can do that. Note the default keyboard handling will already search for a node with a label that starts with "A" when you type "a".

Here’s a sample of what you’d need to do to find and select a node…

public void SelectNode(GoView view, String s) {
  foreach (GoObject obj in view.Document) {
    IGoLabeledNode ln = obj as IGoLabeledNode;
    if (ln != null && ln.Text.IndexOf(s, StringComparison.CurrentCultureIgnoreCase) >= 0) {