84 references to ElementEnd
PresentationFramework (84)
MS\Internal\Documents\TextDocumentView.cs (2)
801position = ((TextElement)rowResult.Element).ElementEnd; 3488if (textPointer.LogicalDirection == LogicalDirection.Backward && textPointer.CompareTo(textElement.ElementEnd) == 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
333TextPointer elementEnd = new TextPointer(((TextElement)child).ElementEnd);
MS\Internal\PtsHost\ListParagraph.cs (1)
114textPointer.MoveToPosition(element.ElementEnd);
System\Windows\Controls\TextAdaptor.cs (1)
603rangeEnd = ((TextElement)childElement).ElementEnd;
System\Windows\Controls\TextBlock.cs (1)
1773end = new TextPointer(((TextElement)child).ElementEnd);
System\Windows\Documents\List.cs (7)
210textNav.MoveToPosition(((TextElement)element).ElementEnd); 240this.Reposition(firstBlock.ElementStart, lastBlock.ElementEnd); 254listItem.Reposition(listItem.ContentStart, block.ElementEnd); 260listItem.Reposition(block.ElementStart, block.ElementEnd); 268listItem.Reposition(block.ElementStart, block.ElementEnd); 278block = block == lastBlock ? null : (Block)listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward); 284TextRangeEdit.SetParagraphProperty(this.ElementStart, this.ElementEnd,
System\Windows\Documents\RangeContentEnumerator.cs (1)
200_navigator.MoveToPosition(((TextElement)_navigator.Parent).ElementEnd);
System\Windows\Documents\TextElement.cs (1)
254tree.DeleteContentInternal(this.ElementStart, this.ElementEnd);
System\Windows\Documents\TextElementCollection.cs (1)
264newItem.RepositionWithContent(previousSibling.ElementEnd);
System\Windows\Documents\TextPointer.cs (1)
64/// <see cref="TextElement.ElementStart"/> and <see cref="TextElement.ElementEnd"/>,
System\Windows\Documents\TextPointerBase.cs (1)
170IsAtPotentialRunPosition(run.ElementStart, run.ElementEnd);
System\Windows\Documents\TextRange.cs (1)
1614this.Select(inlineUIContainer.ElementStart, inlineUIContainer.ElementEnd);
System\Windows\Documents\TextRangeBase.cs (2)
1854end = innerAnchoredBlock.ElementEnd; 1903end = outerAnchoredBlock.ElementEnd;
System\Windows\Documents\TextRangeEdit.cs (22)
78splitPosition.MoveToPosition(inline.ElementEnd); 273position = ((Inline)position.Parent).ElementEnd; 300firstInline.Reposition(firstInline.ElementStart, secondInline.ElementEnd); 333inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 443newSpan.Reposition(parent.ElementStart, parent.ElementEnd); 537newElement = InsertElementClone(element.ElementEnd, element.ElementEnd, element); 539position.MoveToPosition(element.ElementEnd); 554position.MoveToPosition(element.ElementEnd); 614position = position.IsAtNonMergeableInlineStart ? ancestor.ElementStart : ancestor.ElementEnd; 701return lineBreak.ElementEnd.GetInsertionPosition(LogicalDirection.Forward); 800start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 828start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 970TextPointer end = lastChild.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 986span = new Span(firstChild.ElementStart, lastChild.ElementEnd); 1288position = ((Inline)position.Parent).ElementEnd; 1336SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1761Span span = new Span(run.ElementStart, run.ElementEnd); 1895TextPointer nextRunPosition = run.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 2053TextPointer end = SplitFormattingElements(child.ElementEnd, /*keepEmptyFormatting*/false, limit); 2224start = start.Paragraph.ElementEnd; 2245start = paragraph.ElementEnd;
System\Windows\Documents\TextRangeEditLists.cs (28)
61if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 67secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 84if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 92parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 97TextPointer positionAfterSecondParagraph = secondParagraphOrBlockUIContainer.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 113previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 132Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.CompareTo(secondParagraphOrBlockUIContainer.ElementStart) == 0); 133firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 156precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 225precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 230TextRangeEdit.SetParagraphProperty(precedingList.ElementStart, precedingList.ElementEnd, 310Block nextBlock = block == lastBlock ? null : block.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as Block; 354leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd); 363TextRangeEdit.SplitElement(lastListItem.ElementEnd); 374ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 420List indentedList = (List)TextRangeEdit.InsertElementClone(firstListItem.ElementStart, lastListItem.ElementEnd, list); 423leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd); 493TextRangeEdit.SplitElement(lastListItem.ElementEnd); 524if (outerListItemEnd.CompareTo(lastListItem.ElementEnd) == 0) 548TextPointer end = unindentedList.ElementEnd; 560ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 632TextPointer position = firstParagraphOrBlockUIContainer.ElementEnd; 703endListItem.List.ElementEnd.CompareTo(startListItem.List.ElementEnd) < 0) 752TextRangeEdit.SplitElement(endListItem.ElementEnd); 764TextPointer adjustedEnd = list.ElementEnd.GetInsertionPosition(LogicalDirection.Backward); 772adjustedEnd = list.ElementEnd.TextContainer.End; 775if (TextRangeEditTables.IsTableStructureCrossed(list.ElementEnd, adjustedEnd))
System\Windows\Documents\TextRangeEditTables.cs (6)
733if (position.CompareTo(currentTable.ElementEnd) == 0) 738position = CreateImplicitParagraph(currentTable.ElementEnd); 751: CreateImplicitParagraph(blockUIContainer.ElementEnd); 800position = currentTable.ElementEnd; 1039start = startRow.Table.ElementEnd; 1083TextPointer cellEnd = cell.ElementEnd;
System\Windows\Documents\TextRangeSerialization.cs (5)
1289string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd); 1316fragmentEnd = fragment.ElementEnd; 1338fragmentEnd = fragment.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); // need forward orientation to stick with the following content during merge at fragmentStart position 1626start = element.ElementEnd; 1630start = element.ElementEnd;
System\Windows\Documents\TextSchema.cs (1)
890TextPointer end = element.ElementEnd;
System\windows\Documents\TextSelection.cs (1)
1458start = ancestor.ElementEnd;