86 references to GetPointerContext
PresentationFramework (86)
MS\Internal\Documents\HostedElements.cs (3)
100if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 101_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 172switch (_currentPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
948switch (searchPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
594type = position.GetPointerContext((charIndex.TrailingLength == 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\Text\ComplexLine.cs (2)
289type = position.GetPointerContext(LogicalDirection.Forward); 294type = position.GetPointerContext(LogicalDirection.Backward);
System\Windows\Controls\AccessText.cs (2)
578TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 626TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3649switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\FixedTextPointer.cs (1)
90/// <see cref="TextPointer.GetPointerContext"/>
System\Windows\Documents\List.cs (1)
193if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (4)
93switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 107while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 169switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 178while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0);
System\Windows\Documents\Span.cs (2)
213if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 217else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextEffectResolver.cs (2)
100while (navigator.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text 110while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text
System\Windows\Documents\TextElementEnumerator.cs (1)
130Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextPointer.cs (4)
45/// get from a TextPointer using method <see cref="TextPointer.GetPointerContext"/>.</para> 1609TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1616backwardContext = position.GetPointerContext(LogicalDirection.Backward); 2384return GetPointerContext(direction);
System\Windows\Documents\TextPointerBase.cs (1)
776paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEdit.cs (30)
65if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 71else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 262while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 267while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 277position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 278position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 329inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 330inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 416if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 531if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 538else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 554Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 555Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 655while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1030if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1266TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1267TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1277while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1282while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1297while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1306while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1438while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1439startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1616TextPointerContext pointerContext = nextPosition.GetPointerContext(direction); 1652Invariant.Assert(nextPosition.GetPointerContext(direction) == leaveScopeSymbol, "Unexpected context of nextPosition"); 2082if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2117if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2186start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2187end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 2233if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (11)
75while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 143ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 151Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 152Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 173while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 185while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 208if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 209mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 606while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 635while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 646while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (5)
749bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 812while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 816while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1086cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2093movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (10)
1413while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1418while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1456if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1474if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1511TextPointerContext forwardFromStart = start.GetPointerContext(LogicalDirection.Forward); 1512TextPointerContext backwardFromEnd = end.GetPointerContext(LogicalDirection.Backward); 1521TextPointerContext backwardFromStart = start.GetPointerContext(LogicalDirection.Backward); 1522TextPointerContext forwardFromEnd = end.GetPointerContext(LogicalDirection.Forward); 1549((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None; 1609TextPointerContext passedContext = start.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextSchema.cs (1)
887TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
3412if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
55Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
51Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");