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