Method FromText
FromText(IReadOnlyList<GlyphRunSourceSegment>)
Creates the source of a run of document text.
public static GlyphRunSource FromText(IReadOnlyList<GlyphRunSourceSegment> segments)
Parameters
segmentsIReadOnlyList<GlyphRunSourceSegment>The pieces, in run order; at least one.
Returns
- GlyphRunSource
The source.
Exceptions
- ArgumentNullException
segmentsis null.- ArgumentException
segmentsis empty.