Truncate(Segment, int) Method
Truncates the segment to the specified width.
public static Segment Truncate(Segment segment, int maxWidth)
- Namespace
- Spectre
.Console .Rendering - Containing Type
- Segment
Parameters
- Segment segment
- The segment to truncate.
- int maxWidth
- The maximum width that the segment may occupy.