System\Windows\Documents\TextRangeEdit.cs (23)
185(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) &&
232start.Parent is Run &&
294(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) &&
1013if (inline is Run &&
1303Run previousRun = previousPosition.Parent as Run;
1312Run nextRun = nextPosition.Parent as Run;
1750Run run = splitPosition.Parent as Run;
1853private static Inline GetScopingFlowDirectionInline(Run run)
1875Run run = TextRangeEdit.GetNextRun(start, end);
1950if (commonAncestor is Run)
1952ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value);
2077private static Run GetNextRun(TextPointer pointer, TextPointer limit)
2079Run run = null;
2084(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null)
2092Invariant.Assert(pointer.Parent is Run);
2093run = pointer.Parent as Run;
2132private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value)
2149run = (Run)start.GetAdjacentElement(LogicalDirection.Forward);
2165(forwardElement is Run || forwardElement is Span))