Skip to content
ConsoleMonster
Class

OutlineItem

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

One entry of an Outline: a title at a nesting level, and optionally the control it leads to.

Inheritance

  • object
  • OutlineItem

Usage

Explore 12 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.

Returned or exposed by 4

Accepted by parameters 8

Constructors

public OutlineItem(string title, int level = 1) #

Creates an entry.

Parameters

title string required
The visible title.
level int = 1 optional
The nesting level, one for the top; deeper entries are indented.

Properties

public string Title { get; } #

The visible title.

public int Level { get; } #

The nesting level, one for the top.

public InputControl? Target { get; set; } #

The control the entry leads to, or null. Opening the entry focuses it, which scrolls a surrounding scroll view to it, and unfolds it when it is a Collapsible.

Extension Methods

public static OutlineItem Target(OutlineItem outlineItem, InputControl? value) #

Sets OutlineItem.Target: The control the entry leads to, or null. Opening the entry focuses it, which scrolls a surrounding scroll view to it, and unfolds it when it is a Collapsible.

Parameters

outlineItem ConsoleMonster.Interactive.OutlineItem required
The instance.
value ConsoleMonster.Interactive.InputControl? required
The value.

Returns

OutlineItem The same instance.

Examples

// C# initializer or property    // C# fluent
outlineItem.Target = value;      outlineItem.Target(value);