140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
988
if (nextContext == TextPointerContext.
ElementStart
)
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\HostedElements.cs (2)
100
if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
||
174
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextBoxLine.cs (1)
83
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextContainerHelper.cs (1)
320
if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1036
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\Line.cs (2)
146
case TextPointerContext.
ElementStart
:
602
else if (type == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\LineBase.cs (1)
130
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
68
if (runType == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
96
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\TextParagraph.cs (3)
864
while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
894
if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1190
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\Text\ComplexLine.cs (3)
47
case TextPointerContext.
ElementStart
:
303
else if (type == TextPointerContext.
ElementStart
)
380
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
609
if (context == TextPointerContext.
ElementStart
)
System\Windows\Controls\TextRangeAdaptor.cs (3)
768
if (context != TextPointerContext.
ElementStart
&& context != TextPointerContext.ElementEnd)
938
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
1248
return ((symbolType == TextPointerContext.
ElementStart
) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1035
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FixedElement.cs (1)
275
else if (tpc == TextPointerContext.
ElementStart
)
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)
1085
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FlowPosition.cs (2)
286
if (tst == TextPointerContext.
ElementStart
)
762
return TextPointerContext.
ElementStart
;
System\Windows\Documents\Highlights.cs (1)
198
case TextPointerContext.
ElementStart
:
System\Windows\Documents\ImmComposition.cs (2)
1412
case TextPointerContext.
ElementStart
:
1463
case TextPointerContext.
ElementStart
:
System\Windows\Documents\List.cs (1)
193
if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\RangeContentEnumerator.cs (2)
121
case TextPointerContext.
ElementStart
:
186
case TextPointerContext.
ElementStart
:
System\Windows\Documents\Span.cs (1)
213
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\Speller.cs (2)
1710
case TextPointerContext.
ElementStart
:
1801
if (context == TextPointerContext.
ElementStart
&&
System\windows\Documents\TextEditorSpelling.cs (1)
271
case TextPointerContext.
ElementStart
:
System\windows\Documents\TextEditorTyping.cs (6)
800
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
806
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
814
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
833
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
847
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
854
if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextElementEnumerator.cs (1)
130
Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
,
System\Windows\Documents\TextFindEngine.cs (3)
697
case TextPointerContext.
ElementStart
:
897
if (context == TextPointerContext.
ElementStart
&&
917
else if (context == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextPointer.cs (4)
498
/// <para>Returns <see cref="TextPointerContext.
ElementStart
"/> if the TextPointer
1612
while ((backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
3498
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementStart
;
3505
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementStart
: TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
188
backwardContext == TextPointerContext.
ElementStart
&&
192
backwardContext == TextPointerContext.
ElementStart
&& TextSchema.IsNonFormattingInline(forwardType) &&
200
backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.
ElementStart
&&
208
forwardContext == TextPointerContext.
ElementStart
&&
210
(backwardContext != TextPointerContext.
ElementStart
|| !IsAtNonMergeableInlineStart(backwardPosition))
230
if (backwardContext == TextPointerContext.
ElementStart
&& forwardContext == TextPointerContext.ElementEnd)
254
return (forwardContext == TextPointerContext.
ElementStart
&&
255
(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.None) &&
269
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
374
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
420
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
591
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
712
thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
738
while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
776
paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1020
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.None)
1149
directEnterScope = TextPointerContext.
ElementStart
;
1157
oppositeEnterScope = TextPointerContext.
ElementStart
;
1488
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.
ElementStart
;
System\Windows\Documents\TextRangeBase.cs (9)
349
(nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Forward || //
355
nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Backward) && //
710
case TextPointerContext.
ElementStart
:
761
bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
773
if (symbolType == TextPointerContext.
ElementStart
)
1250
while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1358
insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) &&
1617
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
1626
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
65
if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
262
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
278
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
329
inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
416
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
538
else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
555
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "position must be before ElementStart");
655
while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1030
if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1247
if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1269
if (!(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
1270
!(forwardContext == TextPointerContext.
ElementStart
|| forwardContext == TextPointerContext.ElementEnd))
1277
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1306
while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
1438
while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1587
enterScopeSymbol = TextPointerContext.
ElementStart
;
1597
leaveScopeSymbol = TextPointerContext.
ElementStart
;
2082
if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
2117
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2186
start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2233
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeEditLists.cs (6)
75
while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
143
ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
151
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
185
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
209
mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementStart
)
646
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextRangeEditTables.cs (4)
749
bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
812
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1086
cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
2093
movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeSerialization.cs (14)
75
range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
204
while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
216
case TextPointerContext.
ElementStart
:
1413
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1418
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1474
if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1513
Invariant.Assert(forwardFromStart == TextPointerContext.
ElementStart
, "Expecting first opening tag of pasted fragment");
1523
Invariant.Assert(backwardFromStart == TextPointerContext.
ElementStart
|| backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1526
Invariant.Assert(forwardFromEnd == TextPointerContext.
ElementStart
|| forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
1527
Invariant.Assert(!(forwardFromEnd == TextPointerContext.
ElementStart
) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()),
1610
if (passedContext == TextPointerContext.
ElementStart
)
1846
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1873
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1922
while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextSchema.cs (1)
888
if (forwardContext == TextPointerContext.
ElementStart
)
System\windows\Documents\TextSelection.cs (2)
2163
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) || //
2180
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&& //
System\Windows\Documents\TextStore.cs (5)
426
case TextPointerContext.
ElementStart
:
2546
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
|| navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
3178
case TextPointerContext.
ElementStart
:
3412
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
3454
if (forwardContext == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
55
Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
51
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81
return (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementStart
: TextPointerContext.ElementEnd;