86 references to GetPointerContext
PresentationFramework (86)
src\Framework\MS\Internal\Documents\HostedElements.cs (3)
119
if (_currentPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart ||
120
_currentPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
192
switch (_currentPosition.
GetPointerContext
(LogicalDirection.Forward))
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
985
switch (searchPosition.
GetPointerContext
(LogicalDirection.Forward))
src\Framework\MS\Internal\PtsHost\Line.cs (1)
616
type = position.
GetPointerContext
((charIndex.TrailingLength == 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
299
type = position.
GetPointerContext
(LogicalDirection.Forward);
304
type = position.
GetPointerContext
(LogicalDirection.Backward);
src\Framework\System\Windows\Controls\AccessText.cs (2)
579
TextPointerContext symbolType = navigator.
GetPointerContext
(LogicalDirection.Forward);
626
TextPointerContext symbolType = navigator.
GetPointerContext
(LogicalDirection.Forward);
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3658
switch (position.
GetPointerContext
(LogicalDirection.Forward))
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
104
/// <see cref="TextPointer.
GetPointerContext
"/>
src\Framework\System\Windows\Documents\List.cs (1)
204
if (textNav.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (4)
112
switch (_navigator.
GetPointerContext
(LogicalDirection.Forward))
126
while (_navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text);
188
switch (_navigator.
GetPointerContext
(LogicalDirection.Forward))
197
while (_navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0);
src\Framework\System\Windows\Documents\Span.cs (2)
230
if (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
234
else if (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextEffectResolver.cs (2)
114
while (navigator.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.Text
124
while (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.Text
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (1)
147
Invariant.Assert(_navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart,
src\Framework\System\Windows\Documents\TextPointer.cs (4)
53
/// get from a TextPointer using method <see cref="TextPointer.
GetPointerContext
"/>.</para>
1629
TextPointerContext backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
1636
backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
2410
return
GetPointerContext
(direction);
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
784
paragraphOrBlockUIContainer.ElementStart.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (30)
70
if (!keepEmptyFormatting && splitPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
76
else if (!keepEmptyFormatting && splitPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
267
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
272
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
282
position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd &&
283
position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
334
inline.ElementStart.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
335
inline.ElementEnd.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
421
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
536
if (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
543
else if (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
559
Invariant.Assert(position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd");
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)
1271
TextPointerContext backwardContext = position.
GetPointerContext
(LogicalDirection.Backward);
1272
TextPointerContext forwardContext = position.
GetPointerContext
(LogicalDirection.Forward);
1282
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1287
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
1302
while (previousPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd &&
1311
while (nextPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
1443
while (startPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1444
startPosition.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
1621
TextPointerContext pointerContext = nextPosition.
GetPointerContext
(direction);
1657
Invariant.Assert(nextPosition.
GetPointerContext
(direction) == leaveScopeSymbol, "Unexpected context of nextPosition");
2087
if (pointer.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart &&
2122
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
2191
start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
2192
end.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
2238
if (start.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (11)
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);
157
Invariant.Assert(positionAfterSecondParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd);
178
while (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
190
while (navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart)
213
if (mergePosition.
GetPointerContext
(LogicalDirection.Backward) != TextPointerContext.ElementEnd ||
214
mergePosition.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.ElementStart)
609
while (end.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
638
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
649
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (5)
751
bool insertBefore = position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart;
814
while (position.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
818
while (position.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
1088
cellEnd.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
2095
movingPosition.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (10)
1444
while (positionBeforeParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1449
while (positionBeforeParagraph.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
1487
if (navigator.
GetPointerContext
(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
1505
if (navigator.
GetPointerContext
(LogicalDirection.Forward) == TextPointerContext.ElementStart)
1542
TextPointerContext forwardFromStart = start.
GetPointerContext
(LogicalDirection.Forward);
1543
TextPointerContext backwardFromEnd = end.
GetPointerContext
(LogicalDirection.Backward);
1550
TextPointerContext backwardFromStart = start.
GetPointerContext
(LogicalDirection.Backward);
1551
TextPointerContext forwardFromEnd = end.
GetPointerContext
(LogicalDirection.Forward);
1576
((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.
GetPointerContext
(LogicalDirection.Forward) != TextPointerContext.None;
1636
TextPointerContext passedContext = start.
GetPointerContext
(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\TextSchema.cs (1)
896
TextPointerContext forwardContext = start.
GetPointerContext
(LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextStore.cs (1)
3353
if (start.
GetPointerContext
(LogicalDirection.Backward) == 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.");