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