84 references to ElementEnd
PresentationFramework (84)
MS\Internal\Documents\TextDocumentView.cs (2)
797position = ((TextElement)rowResult.Element).ElementEnd; 3441if (textPointer.LogicalDirection == LogicalDirection.Backward && textPointer.CompareTo(textElement.ElementEnd) == 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
324TextPointer elementEnd = new TextPointer(((TextElement)child).ElementEnd);
MS\Internal\PtsHost\ListParagraph.cs (1)
101textPointer.MoveToPosition(element.ElementEnd);
System\Windows\Controls\TextAdaptor.cs (1)
593rangeEnd = ((TextElement)childElement).ElementEnd;
System\Windows\Controls\TextBlock.cs (1)
1754end = new TextPointer(((TextElement)child).ElementEnd);
System\Windows\Documents\List.cs (7)
209textNav.MoveToPosition(((TextElement)element).ElementEnd); 239this.Reposition(firstBlock.ElementStart, lastBlock.ElementEnd); 253listItem.Reposition(listItem.ContentStart, block.ElementEnd); 259listItem.Reposition(block.ElementStart, block.ElementEnd); 267listItem.Reposition(block.ElementStart, block.ElementEnd); 277block = block == lastBlock ? null : (Block)listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward); 283TextRangeEdit.SetParagraphProperty(this.ElementStart, this.ElementEnd,
System\Windows\Documents\RangeContentEnumerator.cs (1)
189_navigator.MoveToPosition(((TextElement)_navigator.Parent).ElementEnd);
System\Windows\Documents\TextElement.cs (1)
240tree.DeleteContentInternal(this.ElementStart, this.ElementEnd);
System\Windows\Documents\TextElementCollection.cs (1)
261newItem.RepositionWithContent(previousSibling.ElementEnd);
System\Windows\Documents\TextPointer.cs (1)
58/// <see cref="TextElement.ElementStart"/> and <see cref="TextElement.ElementEnd"/>,
System\Windows\Documents\TextPointerBase.cs (1)
167IsAtPotentialRunPosition(run.ElementStart, run.ElementEnd);
System\Windows\Documents\TextRange.cs (1)
1603this.Select(inlineUIContainer.ElementStart, inlineUIContainer.ElementEnd);
System\Windows\Documents\TextRangeBase.cs (2)
1849end = innerAnchoredBlock.ElementEnd; 1898end = outerAnchoredBlock.ElementEnd;
System\Windows\Documents\TextRangeEdit.cs (22)
75splitPosition.MoveToPosition(inline.ElementEnd); 270position = ((Inline)position.Parent).ElementEnd; 297firstInline.Reposition(firstInline.ElementStart, secondInline.ElementEnd); 330inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 440newSpan.Reposition(parent.ElementStart, parent.ElementEnd); 534newElement = InsertElementClone(element.ElementEnd, element.ElementEnd, element); 536position.MoveToPosition(element.ElementEnd); 551position.MoveToPosition(element.ElementEnd); 611position = position.IsAtNonMergeableInlineStart ? ancestor.ElementStart : ancestor.ElementEnd; 698return lineBreak.ElementEnd.GetInsertionPosition(LogicalDirection.Forward); 797start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 825start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 967TextPointer end = lastChild.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 983span = new Span(firstChild.ElementStart, lastChild.ElementEnd); 1285position = ((Inline)position.Parent).ElementEnd; 1333SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1758Span span = new Span(run.ElementStart, run.ElementEnd); 1892TextPointer nextRunPosition = run.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 2050TextPointer end = SplitFormattingElements(child.ElementEnd, /*keepEmptyFormatting*/false, limit); 2221start = start.Paragraph.ElementEnd; 2242start = paragraph.ElementEnd;
System\Windows\Documents\TextRangeEditLists.cs (28)
58if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 64secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 81if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 89parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 94TextPointer positionAfterSecondParagraph = secondParagraphOrBlockUIContainer.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 110previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 129Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.CompareTo(secondParagraphOrBlockUIContainer.ElementStart) == 0); 130firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 153precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 222precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 227TextRangeEdit.SetParagraphProperty(precedingList.ElementStart, precedingList.ElementEnd, 307Block nextBlock = block == lastBlock ? null : block.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as Block; 353leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd); 362TextRangeEdit.SplitElement(lastListItem.ElementEnd); 373ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 419List indentedList = (List)TextRangeEdit.InsertElementClone(firstListItem.ElementStart, lastListItem.ElementEnd, list); 422leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd); 492TextRangeEdit.SplitElement(lastListItem.ElementEnd); 523if (outerListItemEnd.CompareTo(lastListItem.ElementEnd) == 0) 547TextPointer end = unindentedList.ElementEnd; 559ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 631TextPointer position = firstParagraphOrBlockUIContainer.ElementEnd; 702endListItem.List.ElementEnd.CompareTo(startListItem.List.ElementEnd) < 0) 751TextRangeEdit.SplitElement(endListItem.ElementEnd); 763TextPointer adjustedEnd = list.ElementEnd.GetInsertionPosition(LogicalDirection.Backward); 771adjustedEnd = list.ElementEnd.TextContainer.End; 774if (TextRangeEditTables.IsTableStructureCrossed(list.ElementEnd, adjustedEnd))
System\Windows\Documents\TextRangeEditTables.cs (6)
734if (position.CompareTo(currentTable.ElementEnd) == 0) 739position = CreateImplicitParagraph(currentTable.ElementEnd); 752: CreateImplicitParagraph(blockUIContainer.ElementEnd); 801position = currentTable.ElementEnd; 1040start = startRow.Table.ElementEnd; 1084TextPointer cellEnd = cell.ElementEnd;
System\Windows\Documents\TextRangeSerialization.cs (5)
1282string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd); 1309fragmentEnd = fragment.ElementEnd; 1331fragmentEnd = fragment.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); // need forward orientation to stick with the following content during merge at fragmentStart position 1619start = element.ElementEnd; 1623start = element.ElementEnd;
System\Windows\Documents\TextSchema.cs (1)
883TextPointer end = element.ElementEnd;
System\windows\Documents\TextSelection.cs (1)
1439start = ancestor.ElementEnd;