C# Class GUI.Controls.BetterTreeView

Show file Open project: SteamDatabase/ValveResourceFormat

Public Methods

Method Description
AddFileNode ( PackageEntry file ) : void

Adds a node to the tree based on the passed file information. This is useful when building a directory-based tree.

BetterTreeView ( ) : System
GenerateIconList ( IEnumerable extensions ) : void
Search ( string value, SearchType searchType ) : IReadOnlyCollection

Performs a breadth-first-search on the TreeView's nodes in search of the passed value. The matching conditions are based on the passed search type parameter.

Protected Methods

Method Description
OnPaint ( PaintEventArgs pe ) : void

Private Methods

Method Description
Search ( string value, Func matchFunction ) : IReadOnlyCollection

Performs a breadth-first-search on the TreeView's nodes in search of the passed value. The matching conditions are based the passed function.

Method Details

AddFileNode() public method

Adds a node to the tree based on the passed file information. This is useful when building a directory-based tree.
public AddFileNode ( PackageEntry file ) : void
file PackageEntry File entry.
return void

BetterTreeView() public method

public BetterTreeView ( ) : System
return System

GenerateIconList() public method

public GenerateIconList ( IEnumerable extensions ) : void
extensions IEnumerable
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
return void

Search() public method

Performs a breadth-first-search on the TreeView's nodes in search of the passed value. The matching conditions are based on the passed search type parameter.
public Search ( string value, SearchType searchType ) : IReadOnlyCollection
value string Value to search for in the TreeView. Matching on this value is based on the search type.
searchType SearchType Determines the matching of the value. For example, full/partial text search or full path search.
return IReadOnlyCollection