Table of Contents

Class CliWrapping

Namespace
ItTiger.TigerCli.Primitives
Assembly
ItTiger.TigerCli.dll
Text wrapping and truncation policy for rendered cell content.
public sealed class CliWrapping
Inheritance
CliWrapping
Inherited Members

Remarks

Wrapping takes effect when the render pipeline has a width constraint from the cell, axis, grid, or sink. Truncation is only allowed when AllowTruncation is true.

Constructors

CliWrapping(CliWrapMode, bool, string?)

Text wrapping and truncation policy for rendered cell content.
public CliWrapping(CliWrapMode mode, bool allowTruncation = false, string? truncationIndicator = null)

Parameters

mode CliWrapMode
allowTruncation bool
truncationIndicator string

Remarks

Wrapping takes effect when the render pipeline has a width constraint from the cell, axis, grid, or sink. Truncation is only allowed when AllowTruncation is true.

Properties

AllowTruncation

Whether text is allowed to be truncated to fit within the constraints.
public bool AllowTruncation { get; init; }

Property Value

bool

CharWrap

Wrap at character boundaries without truncation.
public static CliWrapping CharWrap { get; }

Property Value

CliWrapping

CharWrapTruncate

Wrap at character boundaries and allow truncation with an ellipsis.
public static CliWrapping CharWrapTruncate { get; }

Property Value

CliWrapping

Mode

Defines how the text is broken into lines: none, word, char, multiline, etc.
public CliWrapMode Mode { get; init; }

Property Value

CliWrapMode

Multiline

Preserve explicit line breaks without truncation.
public static CliWrapping Multiline { get; }

Property Value

CliWrapping

MultilineTruncate

Preserve explicit line breaks and allow truncation with an ellipsis.
public static CliWrapping MultilineTruncate { get; }

Property Value

CliWrapping

SingleLine

Render as one line without truncation.
public static CliWrapping SingleLine { get; }

Property Value

CliWrapping

SingleLineTruncate

Render as one line and allow truncation with an ellipsis.
public static CliWrapping SingleLineTruncate { get; }

Property Value

CliWrapping

SymbolWrap

Wrap at symbol boundaries without truncation.
public static CliWrapping SymbolWrap { get; }

Property Value

CliWrapping

SymbolWrapTruncate

Wrap at symbol boundaries and allow truncation with an ellipsis.
public static CliWrapping SymbolWrapTruncate { get; }

Property Value

CliWrapping

TruncationIndicator

Optional indicator to show when text is truncated. Only used when AllowTruncation is true.
public string? TruncationIndicator { get; init; }

Property Value

string

WordWrap

Wrap at word boundaries without truncation.
public static CliWrapping WordWrap { get; }

Property Value

CliWrapping

WordWrapTruncate

Wrap at word boundaries and allow truncation with an ellipsis.
public static CliWrapping WordWrapTruncate { get; }

Property Value

CliWrapping