86 references to GetPointerContext
PresentationFramework (86)
MS\Internal\Documents\HostedElements.cs (3)
107
if (_currentPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart ||
108
_currentPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
180
switch (_currentPosition.
GetPointerContext
(LogicalDirection.Forward))
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
955
switch (searchPosition.
GetPointerContext
(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
607
type = position.
GetPointerContext
((charIndex.TrailingLength == 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\Text\ComplexLine.cs (2)
290
type = position.
GetPointerContext
(LogicalDirection.Forward);
295
type = position.
GetPointerContext
(LogicalDirection.Backward);
System\Windows\Controls\AccessText.cs (2)
577
TextPointerContext symbolType = navigator.
GetPointerContext
(LogicalDirection.Forward);
623
TextPointerContext symbolType = navigator.
GetPointerContext
(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3659
switch (position.
GetPointerContext
(LogicalDirection.Forward))
System\Windows\Documents\FixedTextPointer.cs (1)
93
/// <see cref="TextPointer.
GetPointerContext
"/>
System\Windows\Documents\List.cs (1)
194
if (textNav.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (4)
100
switch (_navigator.
GetPointerContext
(LogicalDirection.Forward))
114
while (_navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text);
176
switch (_navigator.
GetPointerContext
(LogicalDirection.Forward))
185
while (_navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0);
System\Windows\Documents\Span.cs (2)
223
if (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
227
else if (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextEffectResolver.cs (2)
101
while (navigator.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.Text
111
while (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text
System\Windows\Documents\TextElementEnumerator.cs (1)
135
Invariant.Assert(_navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextPointer.cs (4)
46
/// get from a TextPointer using method <see cref="TextPointer.
GetPointerContext
"/>.</para>
1610
TextPointerContext backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
1617
backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
2385
return
GetPointerContext
(direction);
System\Windows\Documents\TextPointerBase.cs (1)
777
paragraphOrBlockUIContainer.ElementStart.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEdit.cs (30)
66
if (!keepEmptyFormatting && splitPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
72
else if (!keepEmptyFormatting && splitPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
263
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
268
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
278
position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd &&
279
position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
330
inline.ElementStart.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
331
inline.ElementEnd.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
417
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
532
if (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
539
else if (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
555
Invariant.Assert(position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd");
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)
1267
TextPointerContext backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
1268
TextPointerContext forwardContext = position.
GetPointerContext
(LogicalDirection.Forward);
1278
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1283
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
1298
while (previousPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd &&
1307
while (nextPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
1439
while (startPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1440
startPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
1617
TextPointerContext pointerContext = nextPosition.
GetPointerContext
(direction);
1653
Invariant.Assert(nextPosition.
GetPointerContext
(direction) == leaveScopeSymbol, "Unexpected context of nextPosition");
2083
if (pointer.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
2118
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
2187
start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
2188
end.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
2234
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (11)
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);
153
Invariant.Assert(positionAfterSecondParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd);
174
while (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
186
while (navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
209
if (mergePosition.
GetPointerContext
(LogicalDirection.Backward) != TextPointerContext.ElementEnd ||
210
mergePosition.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.ElementStart)
605
while (end.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
634
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
645
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (5)
746
bool insertBefore = position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart;
809
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
813
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
1083
cellEnd.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
2090
movingPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (10)
1414
while (positionBeforeParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1419
while (positionBeforeParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1457
if (navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
1475
if (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
1512
TextPointerContext forwardFromStart = start.
GetPointerContext
(LogicalDirection.Forward);
1513
TextPointerContext backwardFromEnd = end.
GetPointerContext
(LogicalDirection.Backward);
1522
TextPointerContext backwardFromStart = start.
GetPointerContext
(LogicalDirection.Backward);
1523
TextPointerContext forwardFromEnd = end.
GetPointerContext
(LogicalDirection.Forward);
1550
((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.None;
1610
TextPointerContext passedContext = start.
GetPointerContext
(LogicalDirection.Backward);
System\Windows\Documents\TextSchema.cs (1)
893
TextPointerContext forwardContext = start.
GetPointerContext
(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
3420
if (start.
GetPointerContext
(LogicalDirection.Backward) == 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.");