84 references to ElementEnd
PresentationFramework (84)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
809position = ((TextElement)rowResult.Element).ElementEnd; 3497if (textPointer.LogicalDirection == LogicalDirection.Backward && textPointer.CompareTo(textElement.ElementEnd) == 0)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
335TextPointer elementEnd = new TextPointer(((TextElement)child).ElementEnd);
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
120textPointer.MoveToPosition(element.ElementEnd);
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
587rangeEnd = ((TextElement)childElement).ElementEnd;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1861end = new TextPointer(((TextElement)child).ElementEnd);
src\Framework\System\Windows\Documents\List.cs (7)
220textNav.MoveToPosition(((TextElement)element).ElementEnd); 250this.Reposition(firstBlock.ElementStart, lastBlock.ElementEnd); 264listItem.Reposition(listItem.ContentStart, block.ElementEnd); 270listItem.Reposition(block.ElementStart, block.ElementEnd); 278listItem.Reposition(block.ElementStart, block.ElementEnd); 288block = block == lastBlock ? null : (Block)listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward); 294TextRangeEdit.SetParagraphProperty(this.ElementStart, this.ElementEnd,
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (1)
208_navigator.MoveToPosition(((TextElement)_navigator.Parent).ElementEnd);
src\Framework\System\Windows\Documents\TextElement.cs (1)
259tree.DeleteContentInternal(this.ElementStart, this.ElementEnd);
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
273newItem.RepositionWithContent(previousSibling.ElementEnd);
src\Framework\System\Windows\Documents\TextPointer.cs (1)
66/// <see cref="TextElement.ElementStart"/> and <see cref="TextElement.ElementEnd"/>,
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
172IsAtPotentialRunPosition(run.ElementStart, run.ElementEnd);
src\Framework\System\Windows\Documents\TextRange.cs (1)
1611this.Select(inlineUIContainer.ElementStart, inlineUIContainer.ElementEnd);
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
1882end = innerAnchoredBlock.ElementEnd; 1931end = outerAnchoredBlock.ElementEnd;
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))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (6)
736if (position.CompareTo(currentTable.ElementEnd) == 0) 741position = CreateImplicitParagraph(currentTable.ElementEnd); 754: CreateImplicitParagraph(blockUIContainer.ElementEnd); 803position = currentTable.ElementEnd; 1042start = startRow.Table.ElementEnd; 1086TextPointer cellEnd = cell.ElementEnd;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (5)
1313string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd); 1340fragmentEnd = fragment.ElementEnd; 1362fragmentEnd = fragment.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); // need forward orientation to stick with the following content during merge at fragmentStart position 1646start = element.ElementEnd; 1650start = element.ElementEnd;
src\Framework\System\Windows\Documents\TextSchema.cs (1)
892TextPointer end = element.ElementEnd;
src\Framework\System\windows\Documents\TextSelection.cs (1)
1461start = ancestor.ElementEnd;