C# Class GUI.Controls.BetterTreeView

Afficher le fichier Open project: SteamDatabase/ValveResourceFormat

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnPaint ( PaintEventArgs pe ) : void

Private Methods

Méthode 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 méthode

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.
Résultat void

BetterTreeView() public méthode

public BetterTreeView ( ) : System
Résultat System

GenerateIconList() public méthode

public GenerateIconList ( IEnumerable extensions ) : void
extensions IEnumerable
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
Résultat void

Search() public méthode

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.
Résultat IReadOnlyCollection