Class GlyphRunSource
Where a GlyphRun's text came from in the document it was laid out from.
public sealed class GlyphRunSource
- Inheritance
-
GlyphRunSource
- Inherited Members
Remarks
A run of document text has one segment per piece of document text it holds, in run order. Usually that is one, but layout shapes adjacent runs of identical formatting as one where ligatures or kerning apply, so a run can hold the text of several document runs.
The layout model cannot reference the document model, so a node is named by its key, a number. Keys are meaningful only with the document instance that was laid out.
Properties
- GeneratedKind
Gets what produced a Generated run's text.
- Kind
Gets what kind of source this is.
- None
Gets the source of a run nothing is known about.
- OwnerKey
Gets the key of the document node a Generated run belongs to (the field, the note reference, the numbered paragraph), or zero when there is none.
Methods
- FromText(IReadOnlyList<GlyphRunSourceSegment>)
Creates the source of a run of document text.
- Generated(GeneratedContentKind, long)
Creates the source of a run whose text layout produced.