src\Framework\System\Windows\Documents\TextRangeEdit.cs (22)
80splitPosition.MoveToPosition(inline.ElementEnd);
275position = ((Inline)position.Parent).ElementEnd;
302firstInline.Reposition(firstInline.ElementStart, secondInline.ElementEnd);
335inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
445newSpan.Reposition(parent.ElementStart, parent.ElementEnd);
539newElement = InsertElementClone(element.ElementEnd, element.ElementEnd, element);
541position.MoveToPosition(element.ElementEnd);
556position.MoveToPosition(element.ElementEnd);
616position = position.IsAtNonMergeableInlineStart ? ancestor.ElementStart : ancestor.ElementEnd;
703return lineBreak.ElementEnd.GetInsertionPosition(LogicalDirection.Forward);
802start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward);
830start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward);
972TextPointer end = lastChild.ElementEnd.GetFrozenPointer(LogicalDirection.Forward);
988span = new Span(firstChild.ElementStart, lastChild.ElementEnd);
1290position = ((Inline)position.Parent).ElementEnd;
1338SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection);
1763Span span = new Span(run.ElementStart, run.ElementEnd);
1897TextPointer nextRunPosition = run.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward);
2055TextPointer end = SplitFormattingElements(child.ElementEnd, /*keepEmptyFormatting*/false, limit);
2226start = start.Paragraph.ElementEnd;
2247start = paragraph.ElementEnd;
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (28)
63if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0)
69secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd);
86if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0)
94parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd);
99TextPointer positionAfterSecondParagraph = secondParagraphOrBlockUIContainer.ElementEnd.GetFrozenPointer(LogicalDirection.Forward);
115previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd);
134Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.CompareTo(secondParagraphOrBlockUIContainer.ElementStart) == 0);
135firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd);
158precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd);
227precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd);
232TextRangeEdit.SetParagraphProperty(precedingList.ElementStart, precedingList.ElementEnd,
312Block nextBlock = block == lastBlock ? null : block.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as Block;
356leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd);
365TextRangeEdit.SplitElement(lastListItem.ElementEnd);
376ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem;
422List indentedList = (List)TextRangeEdit.InsertElementClone(firstListItem.ElementStart, lastListItem.ElementEnd, list);
425leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd);
495TextRangeEdit.SplitElement(lastListItem.ElementEnd);
526if (outerListItemEnd.CompareTo(lastListItem.ElementEnd) == 0)
550TextPointer end = unindentedList.ElementEnd;
562ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem;
634TextPointer position = firstParagraphOrBlockUIContainer.ElementEnd;
705endListItem.List.ElementEnd.CompareTo(startListItem.List.ElementEnd) < 0)
754TextRangeEdit.SplitElement(endListItem.ElementEnd);
766TextPointer adjustedEnd = list.ElementEnd.GetInsertionPosition(LogicalDirection.Backward);
774adjustedEnd = list.ElementEnd.TextContainer.End;
777if (TextRangeEditTables.IsTableStructureCrossed(list.ElementEnd, adjustedEnd))