140 references to ElementStart
PresentationFramework (140)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1016
if (nextContext == TextPointerContext.
ElementStart
)
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\HostedElements.cs (2)
119
if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
||
194
case TextPointerContext.
ElementStart
:
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
93
case TextPointerContext.
ElementStart
:
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
329
if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1086
case TextPointerContext.
ElementStart
:
src\Framework\MS\Internal\PtsHost\Line.cs (2)
167
case TextPointerContext.
ElementStart
:
624
else if (type == TextPointerContext.
ElementStart
)
src\Framework\MS\Internal\PtsHost\LineBase.cs (1)
145
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
85
if (runType == TextPointerContext.
ElementStart
)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
116
case TextPointerContext.
ElementStart
:
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (3)
895
while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
925
if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1228
if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
src\Framework\MS\Internal\Text\ComplexLine.cs (3)
56
case TextPointerContext.
ElementStart
:
313
else if (type == TextPointerContext.
ElementStart
)
391
Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextPointer does not point to element start edge.");
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
603
if (context == TextPointerContext.
ElementStart
)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
779
if (context != TextPointerContext.
ElementStart
&& context != TextPointerContext.ElementEnd)
949
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
1260
return ((symbolType == TextPointerContext.
ElementStart
) || (symbolType == TextPointerContext.ElementEnd));
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1062
case TextPointerContext.
ElementStart
:
src\Framework\System\Windows\Documents\FixedElement.cs (1)
285
else if (tpc == TextPointerContext.
ElementStart
)
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)
1114
case TextPointerContext.
ElementStart
:
src\Framework\System\Windows\Documents\FlowPosition.cs (2)
298
if (tst == TextPointerContext.
ElementStart
)
774
return TextPointerContext.
ElementStart
;
src\Framework\System\Windows\Documents\Highlights.cs (1)
206
case TextPointerContext.
ElementStart
:
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1581
case TextPointerContext.
ElementStart
:
1632
case TextPointerContext.
ElementStart
:
src\Framework\System\Windows\Documents\List.cs (1)
204
if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (2)
140
case TextPointerContext.
ElementStart
:
205
case TextPointerContext.
ElementStart
:
src\Framework\System\Windows\Documents\Span.cs (1)
230
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
src\Framework\System\Windows\Documents\Speller.cs (2)
1846
case TextPointerContext.
ElementStart
:
1937
if (context == TextPointerContext.
ElementStart
&&
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
275
case TextPointerContext.
ElementStart
:
src\Framework\System\windows\Documents\TextEditorTyping.cs (6)
836
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
842
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
850
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
869
if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
)
883
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
890
if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (1)
147
Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
,
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
718
case TextPointerContext.
ElementStart
:
918
if (context == TextPointerContext.
ElementStart
&&
938
else if (context == TextPointerContext.
ElementStart
&&
src\Framework\System\Windows\Documents\TextPointer.cs (4)
515
/// <para>Returns <see cref="TextPointerContext.
ElementStart
"/> if the TextPointer
1632
while ((backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
3530
symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.
ElementStart
;
3537
symbolType = (node.ParentNode != null) ? TextPointerContext.
ElementStart
: TextPointerContext.None;
src\Framework\System\Windows\Documents\TextPointerBase.cs (19)
193
backwardContext == TextPointerContext.
ElementStart
&&
197
backwardContext == TextPointerContext.
ElementStart
&& TextSchema.IsNonFormattingInline(forwardType) &&
205
backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.
ElementStart
&&
213
forwardContext == TextPointerContext.
ElementStart
&&
215
(backwardContext != TextPointerContext.
ElementStart
|| !IsAtNonMergeableInlineStart(backwardPosition))
235
if (backwardContext == TextPointerContext.
ElementStart
&& forwardContext == TextPointerContext.ElementEnd)
259
return (forwardContext == TextPointerContext.
ElementStart
&&
260
(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.None) &&
274
position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
379
while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
425
if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
596
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
720
thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
746
while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
784
paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1028
if (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.None)
1157
directEnterScope = TextPointerContext.
ElementStart
;
1165
oppositeEnterScope = TextPointerContext.
ElementStart
;
1496
TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.
ElementStart
;
src\Framework\System\Windows\Documents\TextRangeBase.cs (9)
364
(nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Forward || //
370
nextContext == TextPointerContext.
ElementStart
&& direction == LogicalDirection.Backward) && //
725
case TextPointerContext.
ElementStart
:
776
bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
788
if (symbolType == TextPointerContext.
ElementStart
)
1265
while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1376
insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) &&
1649
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
1658
while (context == TextPointerContext.
ElementStart
|| context == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (21)
70
if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
267
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
283
position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
334
inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
421
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
543
else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
560
Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "position must be before ElementStart");
660
while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1035
if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1252
if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
1274
if (!(backwardContext == TextPointerContext.
ElementStart
|| backwardContext == TextPointerContext.ElementEnd) &&
1275
!(forwardContext == TextPointerContext.
ElementStart
|| forwardContext == TextPointerContext.ElementEnd))
1282
while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1311
while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
1443
while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1592
enterScopeSymbol = TextPointerContext.
ElementStart
;
1602
leaveScopeSymbol = TextPointerContext.
ElementStart
;
2087
if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
&&
2122
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2191
start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
2238
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (6)
80
while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
148
ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
156
Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
190
while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
214
mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.
ElementStart
)
649
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
751
bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
;
814
while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1088
cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
2095
movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (14)
84
range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.
ElementStart
;
217
while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
229
case TextPointerContext.
ElementStart
:
1444
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1449
while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
1505
if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
)
1544
Invariant.Assert(forwardFromStart == TextPointerContext.
ElementStart
, "Expecting first opening tag of pasted fragment");
1552
Invariant.Assert(backwardFromStart == TextPointerContext.
ElementStart
|| backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment");
1554
Invariant.Assert(forwardFromEnd == TextPointerContext.
ElementStart
|| forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
1555
Invariant.Assert(!(forwardFromEnd == TextPointerContext.
ElementStart
) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name);
1637
if (passedContext == TextPointerContext.
ElementStart
)
1873
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1900
Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
);
1949
while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&&
src\Framework\System\Windows\Documents\TextSchema.cs (1)
897
if (forwardContext == TextPointerContext.
ElementStart
)
src\Framework\System\windows\Documents\TextSelection.cs (2)
2190
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
) || //
2207
caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
&& //
src\Framework\System\Windows\Documents\TextStore.cs (5)
331
case TextPointerContext.
ElementStart
:
2419
Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
|| navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
3103
case TextPointerContext.
ElementStart
:
3353
if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
)
3395
if (forwardContext == TextPointerContext.
ElementStart
)
src\Framework\System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
60
Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
59
Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.
ElementStart
, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (1)
87
return (direction == LogicalDirection.Forward) ? TextPointerContext.
ElementStart
: TextPointerContext.ElementEnd;