Struct TextBlock.InlinesTextSource
protected readonly struct TextBlock.InlinesTextSource : ITextSource
- Implements
- Inherited Members
Constructors
InlinesTextSource(IReadOnlyList<TextRun>, IReadOnlyList<ValueSpan<TextRunProperties>>?)
public InlinesTextSource(IReadOnlyList<TextRun> textRuns, IReadOnlyList<ValueSpan<TextRunProperties>>? textModifier = null)
Parameters
textRuns
IReadOnlyList<TextRun>textModifier
IReadOnlyList<ValueSpan<TextRunProperties>>
Properties
TextRuns
public IReadOnlyList<TextRun> TextRuns { get; }
Property Value
Methods
GetTextRun(int)
Gets a TextRun for specified text source index.
public TextRun? GetTextRun(int textSourceIndex)
Parameters
textSourceIndex
intThe text source index.
Returns
- TextRun
The text run.