Method FindRun
FindRun(out int)
Finds the text run this position falls in: the run holding the character before it, or, when the character before is not text (or there is none), the run holding the character after it.
public TextRun? FindRun(out int offset)
Parameters
offsetintThe character offset in the returned run, or 0 when there is none.
Returns
- TextRun
The run, or null when neither neighbouring character is text.
Exceptions
- InvalidOperationException
The position is
default, or its paragraph's content has changed so that the offset no longer exists.