Table of Contents

Struct TextBlock.InlinesTextSource

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll
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

IReadOnlyList<TextRun>

Methods

GetTextRun(int)

Gets a TextRun for specified text source index.

public TextRun? GetTextRun(int textSourceIndex)

Parameters

textSourceIndex int

The text source index.

Returns

TextRun

The text run.