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