92 references to ElementEnd
PresentationFramework (92)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1042
else if (nextContext == TextPointerContext.
ElementEnd
)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
824
if ((currentContext == TextPointerContext.
ElementEnd
|| currentContext == TextPointerContext.ElementStart) &&
857
if (currentContext == TextPointerContext.
ElementEnd
&& nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart)
864
if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.
ElementEnd
)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
94
case TextPointerContext.
ElementEnd
:
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1075
case TextPointerContext.
ElementEnd
:
src\Framework\MS\Internal\PtsHost\Line.cs (2)
171
case TextPointerContext.
ElementEnd
:
620
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
src\Framework\MS\Internal\PtsHost\LineBase.cs (1)
261
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
122
else if (runType == TextPointerContext.
ElementEnd
)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
120
case TextPointerContext.
ElementEnd
:
src\Framework\MS\Internal\Text\ComplexLine.cs (3)
60
case TextPointerContext.
ElementEnd
:
309
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
483
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
779
if (context != TextPointerContext.ElementStart && context != TextPointerContext.
ElementEnd
)
935
if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
1260
return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.
ElementEnd
));
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1067
case TextPointerContext.
ElementEnd
:
src\Framework\System\Windows\Documents\FixedTextPointer.cs (2)
163
if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.
ElementEnd
))
180
if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
1109
if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.
ElementEnd
)
1117
case TextPointerContext.
ElementEnd
:
src\Framework\System\Windows\Documents\FlowPosition.cs (2)
307
else if (tst == TextPointerContext.
ElementEnd
)
777
return TextPointerContext.
ElementEnd
;
src\Framework\System\Windows\Documents\Highlights.cs (1)
207
case TextPointerContext.
ElementEnd
:
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1582
case TextPointerContext.
ElementEnd
:
1633
case TextPointerContext.
ElementEnd
:
src\Framework\System\Windows\Documents\Span.cs (1)
234
else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\Speller.cs (2)
1847
case TextPointerContext.
ElementEnd
:
1942
else if (context == TextPointerContext.
ElementEnd
&&
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
276
case TextPointerContext.
ElementEnd
:
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
837
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
875
position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
719
case TextPointerContext.
ElementEnd
:
923
else if (context == TextPointerContext.
ElementEnd
&&
933
if (context == TextPointerContext.
ElementEnd
&&
src\Framework\System\Windows\Documents\TextPointer.cs (4)
517
/// <para>Returns <see cref="TextPointerContext.
ElementEnd
"/> if the TextPointer
1632
while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
3485
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementEnd
: TextPointerContext.None;
3498
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementEnd
;
src\Framework\System\Windows\Documents\TextPointerBase.cs (14)
194
forwardContext == TextPointerContext.
ElementEnd
201
forwardContext == TextPointerContext.
ElementEnd
&& TextSchema.IsNonFormattingInline(backwardType) &&
205
backwardContext == TextPointerContext.
ElementEnd
&& forwardContext == TextPointerContext.ElementStart &&
209
backwardContext == TextPointerContext.
ElementEnd
&&
211
(forwardContext != TextPointerContext.
ElementEnd
|| !IsAtNonMergeableInlineEnd(forwardPosition))
235
if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.
ElementEnd
)
280
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
;
426
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
596
if (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
719
thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
731
thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1158
oppositeEnterScope = TextPointerContext.
ElementEnd
;
1164
directEnterScope = TextPointerContext.
ElementEnd
;
1496
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementEnd
: TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\TextRangeBase.cs (7)
365
nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Backward) && //
369
(nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Forward || //
698
case TextPointerContext.
ElementEnd
:
781
if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.
ElementEnd
&&
1378
insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
1649
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
1658
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (14)
76
else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
272
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
282
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
335
inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
536
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
559
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
, "position must be after ElementEnd");
1274
if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
1275
!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.
ElementEnd
))
1287
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
1302
while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1444
startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
1593
leaveScopeSymbol = TextPointerContext.
ElementEnd
;
1601
enterScopeSymbol = TextPointerContext.
ElementEnd
;
2192
end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (5)
157
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
);
178
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
213
if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementEnd
||
609
while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
638
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
818
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
272
case TextPointerContext.
ElementEnd
:
1487
if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
1545
Invariant.Assert(backwardFromEnd == TextPointerContext.
ElementEnd
, "Expecting last closing tag of pasted fragment");
1552
Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.
ElementEnd
|| backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1553
Invariant.Assert(!(backwardFromStart == TextPointerContext.
ElementEnd
) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), "An element preceding a pasted fragment is expected to be a " + itemType.Name);
1554
Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.
ElementEnd
|| forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
src\Framework\System\Windows\Documents\TextStore.cs (4)
347
case TextPointerContext.
ElementEnd
:
2419
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
3107
case TextPointerContext.
ElementEnd
:
3404
else if (forwardContext != TextPointerContext.
ElementEnd
)
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (1)
87
return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.
ElementEnd
;