140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
992
if (nextContext == TextPointerContext.
ElementStart
)
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\HostedElements.cs (2)
107
if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
||
182
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextBoxLine.cs (1)
84
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextContainerHelper.cs (1)
321
if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1055
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\Line.cs (2)
158
case TextPointerContext.
ElementStart
:
615
else if (type == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\LineBase.cs (1)
135
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
78
if (runType == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
105
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\TextParagraph.cs (3)
881
while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
911
if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1213
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\Text\ComplexLine.cs (3)
48
case TextPointerContext.
ElementStart
:
304
else if (type == TextPointerContext.
ElementStart
)
381
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
616
if (context == TextPointerContext.
ElementStart
)
System\Windows\Controls\TextRangeAdaptor.cs (3)
769
if (context != TextPointerContext.
ElementStart
&& context != TextPointerContext.ElementEnd)
939
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
1249
return ((symbolType == TextPointerContext.
ElementStart
) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1039
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FixedElement.cs (1)
272
else if (tpc == TextPointerContext.
ElementStart
)
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)
1094
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FlowPosition.cs (2)
287
if (tst == TextPointerContext.
ElementStart
)
763
return TextPointerContext.
ElementStart
;
System\Windows\Documents\Highlights.cs (1)
199
case TextPointerContext.
ElementStart
:
System\Windows\Documents\ImmComposition.cs (2)
1426
case TextPointerContext.
ElementStart
:
1477
case TextPointerContext.
ElementStart
:
System\Windows\Documents\List.cs (1)
194
if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\RangeContentEnumerator.cs (2)
128
case TextPointerContext.
ElementStart
:
193
case TextPointerContext.
ElementStart
:
System\Windows\Documents\Span.cs (1)
223
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\Speller.cs (2)
1714
case TextPointerContext.
ElementStart
:
1805
if (context == TextPointerContext.
ElementStart
&&
System\windows\Documents\TextEditorSpelling.cs (1)
272
case TextPointerContext.
ElementStart
:
System\windows\Documents\TextEditorTyping.cs (6)
810
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
816
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
824
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
843
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
857
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
864
if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextElementEnumerator.cs (1)
135
Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
,
System\Windows\Documents\TextFindEngine.cs (3)
699
case TextPointerContext.
ElementStart
:
899
if (context == TextPointerContext.
ElementStart
&&
919
else if (context == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextPointer.cs (4)
499
/// <para>Returns <see cref="TextPointerContext.
ElementStart
"/> if the TextPointer
1613
while ((backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
3499
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementStart
;
3506
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementStart
: TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
189
backwardContext == TextPointerContext.
ElementStart
&&
193
backwardContext == TextPointerContext.
ElementStart
&& TextSchema.IsNonFormattingInline(forwardType) &&
201
backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.
ElementStart
&&
209
forwardContext == TextPointerContext.
ElementStart
&&
211
(backwardContext != TextPointerContext.
ElementStart
|| !IsAtNonMergeableInlineStart(backwardPosition))
231
if (backwardContext == TextPointerContext.
ElementStart
&& forwardContext == TextPointerContext.ElementEnd)
255
return (forwardContext == TextPointerContext.
ElementStart
&&
256
(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.None) &&
270
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
375
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
421
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
592
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
713
thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
739
while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
777
paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1021
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.None)
1150
directEnterScope = TextPointerContext.
ElementStart
;
1158
oppositeEnterScope = TextPointerContext.
ElementStart
;
1489
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.
ElementStart
;
System\Windows\Documents\TextRangeBase.cs (9)
350
(nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Forward || //
356
nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Backward) && //
711
case TextPointerContext.
ElementStart
:
762
bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
774
if (symbolType == TextPointerContext.
ElementStart
)
1251
while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1359
insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) &&
1618
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
1627
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
66
if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
263
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
279
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
330
inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
417
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
539
else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
556
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "position must be before ElementStart");
656
while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1031
if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1248
if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1270
if (!(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
1271
!(forwardContext == TextPointerContext.
ElementStart
|| forwardContext == TextPointerContext.ElementEnd))
1278
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1307
while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
1439
while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1588
enterScopeSymbol = TextPointerContext.
ElementStart
;
1598
leaveScopeSymbol = TextPointerContext.
ElementStart
;
2083
if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
2118
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2187
start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2234
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeEditLists.cs (6)
76
while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
144
ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
152
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
186
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
210
mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementStart
)
645
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextRangeEditTables.cs (4)
746
bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
809
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1083
cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
2090
movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeSerialization.cs (14)
76
range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
205
while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
217
case TextPointerContext.
ElementStart
:
1414
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1419
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1475
if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1514
Invariant.Assert(forwardFromStart == TextPointerContext.
ElementStart
, "Expecting first opening tag of pasted fragment");
1524
Invariant.Assert(backwardFromStart == TextPointerContext.
ElementStart
|| backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1527
Invariant.Assert(forwardFromEnd == TextPointerContext.
ElementStart
|| forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
1528
Invariant.Assert(!(forwardFromEnd == TextPointerContext.
ElementStart
) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()),
1611
if (passedContext == TextPointerContext.
ElementStart
)
1847
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1874
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1923
while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextSchema.cs (1)
894
if (forwardContext == TextPointerContext.
ElementStart
)
System\windows\Documents\TextSelection.cs (2)
2179
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) || //
2196
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&& //
System\Windows\Documents\TextStore.cs (5)
427
case TextPointerContext.
ElementStart
:
2553
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
|| navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
3183
case TextPointerContext.
ElementStart
:
3420
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
3462
if (forwardContext == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
56
Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
52
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreeTextElementNode.cs (1)
80
return (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementStart
: TextPointerContext.ElementEnd;