Skip to content
ConsoleMonster

API Reference

Class

KeyValueItem

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers sealed

One pair in a KeyValueList.

Inheritance

  • Object
  • KeyValueItem

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.

Returned or exposed by 1

Constructors

public KeyValueItem(String key, String value, StatusKind? status = null) #

Creates a pair.

Parameters

key System.String requiredposition: 0
The key (plain text).
value System.String requiredposition: 1
The value (markup).
status ConsoleMonster.Styling.StatusKind? = null optionalposition: 2
An optional status marker.

Properties

public String Key { get; } #

The key.

public String Value { get; } #

The value (markup).

public StatusKind? Status { get; } #

An optional status marker.

public TableCell? Cell { get; internal set; } #

A raw value shown through KeyValueItem.Presenter instead of KeyValueItem.Value, or null.

public ICellPresenter? Presenter { get; internal set; } #

The presenter for KeyValueItem.Cell, or null for automatic.

public IReadOnlyList<ToneRule>? Rules { get; internal set; } #

Tone rules for KeyValueItem.Cell, or null.