84 references to ElementEnd
PresentationFramework (84)
MS\Internal\Documents\TextDocumentView.cs (2)
798position = ((TextElement)rowResult.Element).ElementEnd; 3451if (textPointer.LogicalDirection == LogicalDirection.Backward && textPointer.CompareTo(textElement.ElementEnd) == 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
325TextPointer elementEnd = new TextPointer(((TextElement)child).ElementEnd);
MS\Internal\PtsHost\ListParagraph.cs (1)
102textPointer.MoveToPosition(element.ElementEnd);
System\Windows\Controls\TextAdaptor.cs (1)
600rangeEnd = ((TextElement)childElement).ElementEnd;
System\Windows\Controls\TextBlock.cs (1)
1761end = 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)
190_navigator.MoveToPosition(((TextElement)_navigator.Parent).ElementEnd);
System\Windows\Documents\TextElement.cs (1)
241tree.DeleteContentInternal(this.ElementStart, this.ElementEnd);
System\Windows\Documents\TextElementCollection.cs (1)
262newItem.RepositionWithContent(previousSibling.ElementEnd);
System\Windows\Documents\TextPointer.cs (1)
59/// <see cref="TextElement.ElementStart"/> and <see cref="TextElement.ElementEnd"/>,
System\Windows\Documents\TextPointerBase.cs (1)
168IsAtPotentialRunPosition(run.ElementStart, run.ElementEnd);
System\Windows\Documents\TextRange.cs (1)
1604this.Select(inlineUIContainer.ElementStart, inlineUIContainer.ElementEnd);
System\Windows\Documents\TextRangeBase.cs (2)
1850end = innerAnchoredBlock.ElementEnd; 1899end = outerAnchoredBlock.ElementEnd;
System\Windows\Documents\TextRangeEdit.cs (22)
76splitPosition.MoveToPosition(inline.ElementEnd); 271position = ((Inline)position.Parent).ElementEnd; 298firstInline.Reposition(firstInline.ElementStart, secondInline.ElementEnd); 331inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 441newSpan.Reposition(parent.ElementStart, parent.ElementEnd); 535newElement = InsertElementClone(element.ElementEnd, element.ElementEnd, element); 537position.MoveToPosition(element.ElementEnd); 552position.MoveToPosition(element.ElementEnd); 612position = position.IsAtNonMergeableInlineStart ? ancestor.ElementStart : ancestor.ElementEnd; 699return lineBreak.ElementEnd.GetInsertionPosition(LogicalDirection.Forward); 798start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 826start = block.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 968TextPointer end = lastChild.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 984span = new Span(firstChild.ElementStart, lastChild.ElementEnd); 1286position = ((Inline)position.Parent).ElementEnd; 1334SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1759Span span = new Span(run.ElementStart, run.ElementEnd); 1893TextPointer nextRunPosition = run.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); 2051TextPointer end = SplitFormattingElements(child.ElementEnd, /*keepEmptyFormatting*/false, limit); 2222start = start.Paragraph.ElementEnd; 2243start = paragraph.ElementEnd;
System\Windows\Documents\TextRangeEditLists.cs (28)
59if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 65secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 82if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 90parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 95TextPointer positionAfterSecondParagraph = secondParagraphOrBlockUIContainer.ElementEnd.GetFrozenPointer(LogicalDirection.Forward); 111previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 130Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.CompareTo(secondParagraphOrBlockUIContainer.ElementStart) == 0); 131firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 154precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 223precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 228TextRangeEdit.SetParagraphProperty(precedingList.ElementStart, precedingList.ElementEnd, 308Block 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)
735if (position.CompareTo(currentTable.ElementEnd) == 0) 740position = CreateImplicitParagraph(currentTable.ElementEnd); 753: CreateImplicitParagraph(blockUIContainer.ElementEnd); 802position = currentTable.ElementEnd; 1041start = startRow.Table.ElementEnd; 1085TextPointer cellEnd = cell.ElementEnd;
System\Windows\Documents\TextRangeSerialization.cs (5)
1283string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd); 1310fragmentEnd = fragment.ElementEnd; 1332fragmentEnd = fragment.ElementEnd.GetPositionAtOffset(0, LogicalDirection.Forward); // need forward orientation to stick with the following content during merge at fragmentStart position 1620start = element.ElementEnd; 1624start = element.ElementEnd;
System\Windows\Documents\TextSchema.cs (1)
884TextPointer end = element.ElementEnd;
System\windows\Documents\TextSelection.cs (1)
1455start = ancestor.ElementEnd;