92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1012
else if (nextContext == TextPointerContext.
ElementEnd
)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
799
if ((currentContext == TextPointerContext.
ElementEnd
|| currentContext == TextPointerContext.ElementStart) &&
832
if (currentContext == TextPointerContext.
ElementEnd
&& nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart)
839
if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.
ElementEnd
)
MS\Internal\Documents\TextBoxLine.cs (1)
84
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1025
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\Line.cs (2)
150
case TextPointerContext.
ElementEnd
:
598
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\LineBase.cs (1)
245
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
103
else if (runType == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
100
case TextPointerContext.
ElementEnd
:
MS\Internal\Text\ComplexLine.cs (3)
51
case TextPointerContext.
ElementEnd
:
299
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
471
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
768
if (context != TextPointerContext.ElementStart && context != TextPointerContext.
ElementEnd
)
924
if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
1248
return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.
ElementEnd
));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1040
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FixedTextPointer.cs (2)
146
if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.
ElementEnd
))
163
if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.
ElementEnd
)
System\Windows\Documents\FixedTextView.cs (2)
1080
if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.
ElementEnd
)
1088
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FlowPosition.cs (2)
295
else if (tst == TextPointerContext.
ElementEnd
)
765
return TextPointerContext.
ElementEnd
;
System\Windows\Documents\Highlights.cs (1)
199
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\ImmComposition.cs (2)
1413
case TextPointerContext.
ElementEnd
:
1464
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\Span.cs (1)
217
else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\Speller.cs (2)
1711
case TextPointerContext.
ElementEnd
:
1806
else if (context == TextPointerContext.
ElementEnd
&&
System\windows\Documents\TextEditorSpelling.cs (1)
272
case TextPointerContext.
ElementEnd
:
System\windows\Documents\TextEditorTyping.cs (2)
801
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
839
position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextFindEngine.cs (3)
698
case TextPointerContext.
ElementEnd
:
902
else if (context == TextPointerContext.
ElementEnd
&&
912
if (context == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextPointer.cs (4)
500
/// <para>Returns <see cref="TextPointerContext.
ElementEnd
"/> if the TextPointer
1612
while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
3453
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementEnd
: TextPointerContext.None;
3466
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementEnd
;
System\Windows\Documents\TextPointerBase.cs (14)
189
forwardContext == TextPointerContext.
ElementEnd
196
forwardContext == TextPointerContext.
ElementEnd
&& TextSchema.IsNonFormattingInline(backwardType) &&
200
backwardContext == TextPointerContext.
ElementEnd
&& forwardContext == TextPointerContext.ElementStart &&
204
backwardContext == TextPointerContext.
ElementEnd
&&
206
(forwardContext != TextPointerContext.
ElementEnd
|| !IsAtNonMergeableInlineEnd(forwardPosition))
230
if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.
ElementEnd
)
275
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
;
421
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
591
if (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
711
thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
723
thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1150
oppositeEnterScope = TextPointerContext.
ElementEnd
;
1156
directEnterScope = TextPointerContext.
ElementEnd
;
1488
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementEnd
: TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
350
nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Backward) && //
354
(nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Forward || //
683
case TextPointerContext.
ElementEnd
:
766
if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.
ElementEnd
&&
1360
insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
1617
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
1626
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEdit.cs (14)
71
else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
267
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
277
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
330
inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
531
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
554
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
, "position must be after ElementEnd");
1269
if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
1270
!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.
ElementEnd
))
1282
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
1297
while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1439
startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
1588
leaveScopeSymbol = TextPointerContext.
ElementEnd
;
1596
enterScopeSymbol = TextPointerContext.
ElementEnd
;
2187
end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextRangeEditLists.cs (5)
152
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
);
173
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
208
if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementEnd
||
606
while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
635
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEditTables.cs (1)
816
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeSerialization.cs (6)
259
case TextPointerContext.
ElementEnd
:
1456
if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
1514
Invariant.Assert(backwardFromEnd == TextPointerContext.
ElementEnd
, "Expecting last closing tag of pasted fragment");
1523
Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.
ElementEnd
|| backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1524
Invariant.Assert(!(backwardFromStart == TextPointerContext.
ElementEnd
) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()),
1526
Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.
ElementEnd
|| forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
442
case TextPointerContext.
ElementEnd
:
2546
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
3182
case TextPointerContext.
ElementEnd
:
3463
else if (forwardContext != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81
return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.
ElementEnd
;