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
modeCliWrapModeallowTruncationbooltruncationIndicatorstring
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
CharWrap
Wrap at character boundaries without truncation.
public static CliWrapping CharWrap { get; }
Property Value
CharWrapTruncate
Wrap at character boundaries and allow truncation with an ellipsis.
public static CliWrapping CharWrapTruncate { get; }
Property Value
Mode
Defines how the text is broken into lines: none, word, char, multiline, etc.
public CliWrapMode Mode { get; init; }
Property Value
Multiline
Preserve explicit line breaks without truncation.
public static CliWrapping Multiline { get; }
Property Value
MultilineTruncate
Preserve explicit line breaks and allow truncation with an ellipsis.
public static CliWrapping MultilineTruncate { get; }
Property Value
SingleLine
Render as one line without truncation.
public static CliWrapping SingleLine { get; }
Property Value
SingleLineTruncate
Render as one line and allow truncation with an ellipsis.
public static CliWrapping SingleLineTruncate { get; }
Property Value
SymbolWrap
Wrap at symbol boundaries without truncation.
public static CliWrapping SymbolWrap { get; }
Property Value
SymbolWrapTruncate
Wrap at symbol boundaries and allow truncation with an ellipsis.
public static CliWrapping SymbolWrapTruncate { get; }
Property Value
TruncationIndicator
Optional indicator to show when text is truncated.
Only used when AllowTruncation is true.
public string? TruncationIndicator { get; init; }
Property Value
WordWrap
Wrap at word boundaries without truncation.
public static CliWrapping WordWrap { get; }
Property Value
WordWrapTruncate
Wrap at word boundaries and allow truncation with an ellipsis.
public static CliWrapping WordWrapTruncate { get; }