[]
        
(Showing Draft Content)

C1.Win.TreeView.C1TreeView.Search

Search Method

Search(string, int, ComparisonType, bool, StringComparison)

Searches and shows the C1TreeNode containing the specified string.

Declaration
public bool Search(string value, int columnIndex = 0, ComparisonType comparisonType = ComparisonType.Equal, bool dfs = true, StringComparison stringComparison = StringComparison.InvariantCultureIgnoreCase)
Parameters
Type Name Description
string value

The string to search for.

int columnIndex

Node column index.

ComparisonType comparisonType

String comparison type.

bool dfs

Search Type: true - Depth-first search, false - breadth-first search.

StringComparison stringComparison

A value that determines how a string and value are compared.

Returns
Type Description
bool

True if node is found, False otherwise.