ZForge.Controls.TreeViewAdv.Tree.IncrementalSearch.FirstCharSearch C# (CSharp) Method

FirstCharSearch() private method

private FirstCharSearch ( Char value ) : void
value Char
return void
        private void FirstCharSearch(Char value)
        {
            if (value == ' ')
                return;

            _searchString = value.ToString();
            TreeNodeAdv node = null;
            if (_tree.SelectedNode != null)
                node = _tree.SelectedNode.NextVisibleNode;
            if (node == null)
                node = _tree.Root;

            foreach (string label in IterateNodeLabels(node))
            {
                if (label.StartsWith(_searchString))
                {
                    _tree.SelectedNode = _currentNode;
                    return;
                }
            }
        }