System\Windows\Documents\TextRangeEdit.cs (23)
184(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) &&
231start.Parent is Run &&
293(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) &&
1012if (inline is Run &&
1302Run previousRun = previousPosition.Parent as Run;
1311Run nextRun = nextPosition.Parent as Run;
1749Run run = splitPosition.Parent as Run;
1852private static Inline GetScopingFlowDirectionInline(Run run)
1874Run run = TextRangeEdit.GetNextRun(start, end);
1949if (commonAncestor is Run)
1951ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value);
2076private static Run GetNextRun(TextPointer pointer, TextPointer limit)
2078Run run = null;
2083(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null)
2091Invariant.Assert(pointer.Parent is Run);
2092run = pointer.Parent as Run;
2131private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value)
2148run = (Run)start.GetAdjacentElement(LogicalDirection.Forward);
2164(forwardElement is Run || forwardElement is Span))