92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1023
else if (nextContext == TextPointerContext.
ElementEnd
)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
802
if ((currentContext == TextPointerContext.
ElementEnd
|| currentContext == TextPointerContext.ElementStart) &&
835
if (currentContext == TextPointerContext.
ElementEnd
&& nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart)
842
if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.
ElementEnd
)
MS\Internal\Documents\TextBoxLine.cs (1)
92
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1049
case TextPointerContext.
ElementEnd
:
MS\Internal\PtsHost\Line.cs (2)
168
case TextPointerContext.
ElementEnd
:
617
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\LineBase.cs (1)
256
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
116
else if (runType == TextPointerContext.
ElementEnd
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
116
case TextPointerContext.
ElementEnd
:
MS\Internal\Text\ComplexLine.cs (3)
57
case TextPointerContext.
ElementEnd
:
305
if (type == TextPointerContext.Text || type == TextPointerContext.
ElementEnd
)
477
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
771
if (context != TextPointerContext.ElementStart && context != TextPointerContext.
ElementEnd
)
927
if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
1251
return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.
ElementEnd
));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1050
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FixedTextPointer.cs (2)
154
if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.
ElementEnd
))
171
if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.
ElementEnd
)
System\Windows\Documents\FixedTextView.cs (2)
1097
if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.
ElementEnd
)
1105
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\FlowPosition.cs (2)
300
else if (tst == TextPointerContext.
ElementEnd
)
770
return TextPointerContext.
ElementEnd
;
System\Windows\Documents\Highlights.cs (1)
201
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\ImmComposition.cs (2)
1435
case TextPointerContext.
ElementEnd
:
1486
case TextPointerContext.
ElementEnd
:
System\Windows\Documents\Span.cs (1)
228
else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\Speller.cs (2)
1719
case TextPointerContext.
ElementEnd
:
1814
else if (context == TextPointerContext.
ElementEnd
&&
System\windows\Documents\TextEditorSpelling.cs (1)
274
case TextPointerContext.
ElementEnd
:
System\windows\Documents\TextEditorTyping.cs (2)
820
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
858
position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextFindEngine.cs (3)
708
case TextPointerContext.
ElementEnd
:
912
else if (context == TextPointerContext.
ElementEnd
&&
922
if (context == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextPointer.cs (4)
506
/// <para>Returns <see cref="TextPointerContext.
ElementEnd
"/> if the TextPointer
1618
while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
3459
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementEnd
: TextPointerContext.None;
3472
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementEnd
;
System\Windows\Documents\TextPointerBase.cs (14)
192
forwardContext == TextPointerContext.
ElementEnd
199
forwardContext == TextPointerContext.
ElementEnd
&& TextSchema.IsNonFormattingInline(backwardType) &&
203
backwardContext == TextPointerContext.
ElementEnd
&& forwardContext == TextPointerContext.ElementStart &&
207
backwardContext == TextPointerContext.
ElementEnd
&&
209
(forwardContext != TextPointerContext.
ElementEnd
|| !IsAtNonMergeableInlineEnd(forwardPosition))
233
if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.
ElementEnd
)
278
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
;
424
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
594
if (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
714
thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
726
thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1153
oppositeEnterScope = TextPointerContext.
ElementEnd
;
1159
directEnterScope = TextPointerContext.
ElementEnd
;
1491
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementEnd
: TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
354
nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Backward) && //
358
(nextContext == TextPointerContext.
ElementEnd
&& direction == LogicalDirection.Forward || //
687
case TextPointerContext.
ElementEnd
:
770
if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.
ElementEnd
&&
1364
insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
1621
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
1630
while (context == TextPointerContext.ElementStart || context == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEdit.cs (14)
74
else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
270
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
280
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
333
inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
534
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
557
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
, "position must be after ElementEnd");
1272
if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.
ElementEnd
) &&
1273
!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.
ElementEnd
))
1285
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
1300
while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
&&
1442
startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
1591
leaveScopeSymbol = TextPointerContext.
ElementEnd
;
1599
enterScopeSymbol = TextPointerContext.
ElementEnd
;
2190
end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
&&
System\Windows\Documents\TextRangeEditLists.cs (5)
155
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
);
176
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
211
if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementEnd
||
607
while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
636
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeEditTables.cs (1)
815
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextRangeSerialization.cs (6)
266
case TextPointerContext.
ElementEnd
:
1463
if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementEnd
)
1521
Invariant.Assert(backwardFromEnd == TextPointerContext.
ElementEnd
, "Expecting last closing tag of pasted fragment");
1530
Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.
ElementEnd
|| backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1531
Invariant.Assert(!(backwardFromStart == TextPointerContext.
ElementEnd
) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()),
1533
Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.
ElementEnd
|| forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
454
case TextPointerContext.
ElementEnd
:
2564
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementEnd
);
3198
case TextPointerContext.
ElementEnd
:
3482
else if (forwardContext != TextPointerContext.
ElementEnd
)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81
return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.
ElementEnd
;