Skip to content
ConsoleMonster

API Reference

Class

TreeHierarchyOptions

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers sealed

Limits for TreeHierarchy.Add: how deep, how wide and how large a tree built from objects may grow.

Inheritance

  • Object
  • TreeHierarchyOptions

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public TreeHierarchyOptions() #

Properties

public Int32 Depth { get; set; } #

How many levels of children are followed below each top-level item (default 5; 0 shows only the items).

public Int32 MaxItems { get; set; } #

The most children listed per node, and top-level items listed, before a "+N more" note (default 25; 0 or less lists all).

public Int32 MaxNodes { get; set; } #

The most nodes the whole hierarchy may add (default 5000; 0 or less for no limit); beyond it a "node limit reached" note ends the walk.

public Func<Object, Object>? Identity { get; set; } #

The identity of an item for cycle detection (for example the object a host wrapper wraps), or null to use the item itself. An item that is already on the path from the top is shown once more with a "(cycle)" note and not followed.