92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1016
else if (nextContext == TextPointerContext.
ElementEnd
)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
796
if ((currentContext == TextPointerContext.
ElementEnd
|| currentContext == TextPointerContext.ElementStart) &&
829
if (currentContext == TextPointerContext.
ElementEnd
&& nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart)
836
if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.
ElementEnd
)
MS\Internal\Documents\TextBoxLine.cs (1)
85
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1044
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\Line.cs (2)
162
case TextPointerContext.
ElementEnd
:
611
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\LineBase.cs (1)
250
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
113
else if (runType == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
109
case TextPointerContext.
ElementEnd
:
MS\Internal\Text\ComplexLine.cs (3)
52
case TextPointerContext.
ElementEnd
:
300
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
472
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
769
if (context != TextPointerContext.ElementStart && context != TextPointerContext.
ElementEnd
)
925
if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
1249
return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.
ElementEnd
));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1044
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FixedTextPointer.cs (2)
149
if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.
ElementEnd
))
166
if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.
ElementEnd
)
System\Windows\Documents\FixedTextView.cs (2)
1089
if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.
ElementEnd
)
1097
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FlowPosition.cs (2)
296
else if (tst == TextPointerContext.
ElementEnd
)
766
return TextPointerContext.
ElementEnd
;
System\Windows\Documents\Highlights.cs (1)
200
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\ImmComposition.cs (2)
1427
case TextPointerContext.
ElementEnd
:
1478
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\Span.cs (1)
227
else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\Speller.cs (2)
1715
case TextPointerContext.
ElementEnd
:
1810
else if (context == TextPointerContext.
ElementEnd
&&
System\windows\Documents\TextEditorSpelling.cs (1)
273
case TextPointerContext.
ElementEnd
:
System\windows\Documents\TextEditorTyping.cs (2)
811
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
849
position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextFindEngine.cs (3)
700
case TextPointerContext.
ElementEnd
:
904
else if (context == TextPointerContext.
ElementEnd
&&
914
if (context == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextPointer.cs (4)
501
/// <para>Returns <see cref="TextPointerContext.
ElementEnd
"/> if the TextPointer
1613
while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
3454
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementEnd
: TextPointerContext.None;
3467
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementEnd
;
System\Windows\Documents\TextPointerBase.cs (14)
190
forwardContext == TextPointerContext.
ElementEnd
197
forwardContext == TextPointerContext.
ElementEnd
&& TextSchema.IsNonFormattingInline(backwardType) &&
201
backwardContext == TextPointerContext.
ElementEnd
&& forwardContext == TextPointerContext.ElementStart &&
205
backwardContext == TextPointerContext.
ElementEnd
&&
207
(forwardContext != TextPointerContext.
ElementEnd
|| !IsAtNonMergeableInlineEnd(forwardPosition))
231
if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.
ElementEnd
)
276
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
;
422
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
592
if (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
712
thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
724
thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1151
oppositeEnterScope = TextPointerContext.
ElementEnd
;
1157
directEnterScope = TextPointerContext.
ElementEnd
;
1489
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementEnd
: TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
351
nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Backward) && //
355
(nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Forward || //
684
case TextPointerContext.
ElementEnd
:
767
if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.
ElementEnd
&&
1361
insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
1618
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
1627
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEdit.cs (14)
72
else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
268
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
278
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
331
inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
532
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
555
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
, "position must be after ElementEnd");
1270
if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
1271
!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.
ElementEnd
))
1283
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
1298
while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1440
startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
1589
leaveScopeSymbol = TextPointerContext.
ElementEnd
;
1597
enterScopeSymbol = TextPointerContext.
ElementEnd
;
2188
end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextRangeEditLists.cs (5)
153
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
);
174
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
209
if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementEnd
||
605
while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
634
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEditTables.cs (1)
813
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeSerialization.cs (6)
260
case TextPointerContext.
ElementEnd
:
1457
if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
1515
Invariant.Assert(backwardFromEnd == TextPointerContext.
ElementEnd
, "Expecting last closing tag of pasted fragment");
1524
Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.
ElementEnd
|| backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1525
Invariant.Assert(!(backwardFromStart == TextPointerContext.
ElementEnd
) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()),
1527
Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.
ElementEnd
|| forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
443
case TextPointerContext.
ElementEnd
:
2553
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
3187
case TextPointerContext.
ElementEnd
:
3471
else if (forwardContext != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
80
return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.
ElementEnd
;