SplitLines(IEnumerable<Segment>, int, int?) Method

Splits the provided segments into lines with a maximum width.
public static List<SegmentLine> SplitLines(IEnumerable<Segment> segments, int maxWidth, int? height = null)
Containing Type
Segment

Parameters

IEnumerable<Segment> segments
The segments to split into lines.
int maxWidth
The maximum width.
int? height
The height (if any).

Returns

List<SegmentLine>