System\Windows\Documents\TextRangeEdit.cs (23)
187(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) &&
234start.Parent is Run &&
296(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) &&
1015if (inline is Run &&
1305Run previousRun = previousPosition.Parent as Run;
1314Run nextRun = nextPosition.Parent as Run;
1752Run run = splitPosition.Parent as Run;
1855private static Inline GetScopingFlowDirectionInline(Run run)
1877Run run = TextRangeEdit.GetNextRun(start, end);
1952if (commonAncestor is Run)
1954ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value);
2079private static Run GetNextRun(TextPointer pointer, TextPointer limit)
2081Run run = null;
2086(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null)
2094Invariant.Assert(pointer.Parent is Run);
2095run = pointer.Parent as Run;
2134private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value)
2151run = (Run)start.GetAdjacentElement(LogicalDirection.Forward);
2167(forwardElement is Run || forwardElement is Span))