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