Table of Contents

Class TreeItem

Namespace
CodeStage.Maintainer.Core
Assembly
Build.dll

Basic item which is used to build results trees at Maintainer

[Serializable]
public class TreeItem
Inheritance
object
TreeItem
Derived

Properties

Children

All child items.

public List<TreeItem> Children { get; }

Property Value

List<TreeItem>

ChildrenCount

Shortcut to #Children list count.

public int ChildrenCount { get; }

Property Value

int

Depth

Item depth (-1 for root).

public int Depth { get; }

Property Value

int

HasChildren

Quick way to check if this item has children.

public bool HasChildren { get; }

Property Value

bool

Name

Item name.

public string Name { get; }

Property Value

string

Parent

Parent item, if any.

public TreeItem Parent { get; }

Property Value

TreeItem

Methods

CanBeFoundWith(string)

Use to check if this item's name contains search term.

public bool CanBeFoundWith(string searchString)

Parameters

searchString string

Any search term to check name for.

Returns

bool

True if name contains search term and false otherwise.

Search(string)

protected virtual bool Search(string searchString)

Parameters

searchString string

Returns

bool