src\Framework\System\Windows\Documents\TextRangeEdit.cs (23)
189(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) &&
236start.Parent is Run &&
298(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) &&
1017if (inline is Run &&
1307Run previousRun = previousPosition.Parent as Run;
1316Run nextRun = nextPosition.Parent as Run;
1754Run run = splitPosition.Parent as Run;
1857private static Inline GetScopingFlowDirectionInline(Run run)
1879Run run = TextRangeEdit.GetNextRun(start, end);
1954if (commonAncestor is Run)
1956ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value);
2081private static Run GetNextRun(TextPointer pointer, TextPointer limit)
2083Run run = null;
2088(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null)
2096Invariant.Assert(pointer.Parent is Run);
2097run = pointer.Parent as Run;
2136private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value)
2153run = (Run)start.GetAdjacentElement(LogicalDirection.Forward);
2169(forwardElement is Run || forwardElement is Span))