140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
999
if (nextContext == TextPointerContext.
ElementStart
)
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\HostedElements.cs (2)
111
if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
||
186
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextBoxLine.cs (1)
91
case TextPointerContext.
ElementStart
:
MS\Internal\Documents\TextContainerHelper.cs (1)
324
if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1060
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\Line.cs (2)
164
case TextPointerContext.
ElementStart
:
621
else if (type == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\LineBase.cs (1)
141
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
81
if (runType == TextPointerContext.
ElementStart
)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
112
case TextPointerContext.
ElementStart
:
MS\Internal\PtsHost\TextParagraph.cs (3)
888
while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
918
if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1220
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
MS\Internal\Text\ComplexLine.cs (3)
53
case TextPointerContext.
ElementStart
:
309
else if (type == TextPointerContext.
ElementStart
)
386
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
619
if (context == TextPointerContext.
ElementStart
)
System\Windows\Controls\TextRangeAdaptor.cs (3)
771
if (context != TextPointerContext.
ElementStart
&& context != TextPointerContext.ElementEnd)
941
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
1251
return ((symbolType == TextPointerContext.
ElementStart
) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1045
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FixedElement.cs (1)
280
else if (tpc == TextPointerContext.
ElementStart
)
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)
1102
case TextPointerContext.
ElementStart
:
System\Windows\Documents\FlowPosition.cs (2)
291
if (tst == TextPointerContext.
ElementStart
)
767
return TextPointerContext.
ElementStart
;
System\Windows\Documents\Highlights.cs (1)
200
case TextPointerContext.
ElementStart
:
System\Windows\Documents\ImmComposition.cs (2)
1434
case TextPointerContext.
ElementStart
:
1485
case TextPointerContext.
ElementStart
:
System\Windows\Documents\List.cs (1)
194
if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\RangeContentEnumerator.cs (2)
132
case TextPointerContext.
ElementStart
:
197
case TextPointerContext.
ElementStart
:
System\Windows\Documents\Span.cs (1)
224
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\Speller.cs (2)
1718
case TextPointerContext.
ElementStart
:
1809
if (context == TextPointerContext.
ElementStart
&&
System\windows\Documents\TextEditorSpelling.cs (1)
273
case TextPointerContext.
ElementStart
:
System\windows\Documents\TextEditorTyping.cs (6)
819
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
825
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
833
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
852
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
866
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
873
if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextElementEnumerator.cs (1)
141
Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
,
System\Windows\Documents\TextFindEngine.cs (3)
707
case TextPointerContext.
ElementStart
:
907
if (context == TextPointerContext.
ElementStart
&&
927
else if (context == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextPointer.cs (4)
504
/// <para>Returns <see cref="TextPointerContext.
ElementStart
"/> if the TextPointer
1618
while ((backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
3504
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementStart
;
3511
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementStart
: TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
191
backwardContext == TextPointerContext.
ElementStart
&&
195
backwardContext == TextPointerContext.
ElementStart
&& TextSchema.IsNonFormattingInline(forwardType) &&
203
backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.
ElementStart
&&
211
forwardContext == TextPointerContext.
ElementStart
&&
213
(backwardContext != TextPointerContext.
ElementStart
|| !IsAtNonMergeableInlineStart(backwardPosition))
233
if (backwardContext == TextPointerContext.
ElementStart
&& forwardContext == TextPointerContext.ElementEnd)
257
return (forwardContext == TextPointerContext.
ElementStart
&&
258
(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.None) &&
272
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
377
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
423
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
594
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
715
thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
741
while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
779
paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1023
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.None)
1152
directEnterScope = TextPointerContext.
ElementStart
;
1160
oppositeEnterScope = TextPointerContext.
ElementStart
;
1491
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.
ElementStart
;
System\Windows\Documents\TextRangeBase.cs (9)
353
(nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Forward || //
359
nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Backward) && //
714
case TextPointerContext.
ElementStart
:
765
bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
777
if (symbolType == TextPointerContext.
ElementStart
)
1254
while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1362
insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) &&
1621
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
1630
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
68
if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
265
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
281
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
332
inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
419
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
541
else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
558
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "position must be before ElementStart");
658
while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1033
if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1250
if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1272
if (!(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
1273
!(forwardContext == TextPointerContext.
ElementStart
|| forwardContext == TextPointerContext.ElementEnd))
1280
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1309
while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
1441
while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1590
enterScopeSymbol = TextPointerContext.
ElementStart
;
1600
leaveScopeSymbol = TextPointerContext.
ElementStart
;
2085
if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
2120
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2189
start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2236
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeEditLists.cs (6)
78
while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
146
ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
154
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
188
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
212
mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementStart
)
647
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextRangeEditTables.cs (4)
748
bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
811
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1085
cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
2092
movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextRangeSerialization.cs (14)
82
range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
211
while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
223
case TextPointerContext.
ElementStart
:
1420
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1425
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1481
if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1520
Invariant.Assert(forwardFromStart == TextPointerContext.
ElementStart
, "Expecting first opening tag of pasted fragment");
1530
Invariant.Assert(backwardFromStart == TextPointerContext.
ElementStart
|| backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1533
Invariant.Assert(forwardFromEnd == TextPointerContext.
ElementStart
|| forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
1534
Invariant.Assert(!(forwardFromEnd == TextPointerContext.
ElementStart
) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()),
1617
if (passedContext == TextPointerContext.
ElementStart
)
1853
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1880
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1929
while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
System\Windows\Documents\TextSchema.cs (1)
895
if (forwardContext == TextPointerContext.
ElementStart
)
System\windows\Documents\TextSelection.cs (2)
2182
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) || //
2199
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&& //
System\Windows\Documents\TextStore.cs (5)
438
case TextPointerContext.
ElementStart
:
2564
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
|| navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
3194
case TextPointerContext.
ElementStart
:
3431
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
3473
if (forwardContext == TextPointerContext.
ElementStart
)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
57
Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
53
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;