5 implementations of GetPointerContext
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
134TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
82TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\FixedTextPointer.cs (1)
95TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\NullTextNavigator.cs (1)
71TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\TextPointer.cs (1)
2383TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
152 references to GetPointerContext
PresentationFramework (152)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
991TextPointerContext nextContext = cursor.GetPointerContext(LogicalDirection.Forward);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
795TextPointerContext currentContext = pointer.GetPointerContext(direction); 829if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 836if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextContainerHelper.cs (2)
321if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 342else if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1027switch (textPointer.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
202while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\ListParagraph.cs (1)
77TextPointerContext runType = textPointer.GetPointerContext(LogicalDirection.Forward);
MS\Internal\PtsHost\OptimalTextSource.cs (1)
150while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\TextParaClient.cs (2)
701RectFromDcpSimpleLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline); 706RectFromDcpCompositeLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline);
MS\Internal\PtsHost\TextParagraph.cs (2)
881while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 911if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (1)
92while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
System\Windows\Controls\PasswordTextContainer.cs (1)
235return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Controls\TextAdaptor.cs (1)
615TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextRangeAdaptor.cs (14)
553TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward); 556TextPointerContext backwardContext = _start.GetPointerContext(LogicalDirection.Backward); 570TextPointerContext backwardContext = _end.GetPointerContext(LogicalDirection.Backward); 573TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward); 754while (position.GetPointerContext(direction) == TextPointerContext.Text) 767TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 925if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 939if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1030while (position.GetPointerContext(direction) == TextPointerContext.Text) 1043while (position.GetPointerContext(direction) != TextPointerContext.Text) 1053while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 1061if (position.GetPointerContext(direction) != TextPointerContext.None) 1211while (IsElementBoundary(start.GetPointerContext(LogicalDirection.Forward))) 1218while (IsElementBoundary(end.GetPointerContext(LogicalDirection.Backward)))
System\Windows\Documents\CompositionAdorner.cs (4)
485while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 490Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 624while ((startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) && 625(startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text))
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
126return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
80/// <see cref="ITextPointer.GetPointerContext"/> 631/// <see cref="ITextPointer.GetPointerContext"/> 868TextPointerContext context = thisTp.ChildPointer.GetPointerContext(direction); 886context = pointer.GetPointerContext(direction); 898context = pointer.GetPointerContext(direction); 919return tp.ChildPointer.GetPointerContext(direction); 967if (tp1.ChildPointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None || 968tp2.ChildPointer.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.None) 977if (block.ChildContainer.Start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1036TextPointerContext tst = childTn.GetPointerContext(scanDir);
System\Windows\Documents\FixedElement.cs (1)
263TextPointerContext tpc = pos.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\FixedTextContainer.cs (1)
110return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\FixedTextView.cs (3)
178if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1082TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1106symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
System\Windows\Documents\ImmComposition.cs (4)
1411switch (navigator.GetPointerContext(LogicalDirection.Backward)) 1463switch (navigator.GetPointerContext(LogicalDirection.Forward)) 1562switch (position.GetPointerContext(LogicalDirection.Backward)) 1578switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\NullTextContainer.cs (1)
103return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\NullTextNavigator.cs (1)
69/// <see cref="ITextPointer.GetPointerContext"/>
System\Windows\Documents\Paragraph.cs (1)
253TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\Speller.cs (4)
1101if (position.GetPointerContext(direction) == TextPointerContext.None) 1380searchPosition.GetPointerContext(direction) != TextPointerContext.None); 1685switch (position.GetPointerContext(LogicalDirection.Forward)) 1803context = pointer.GetPointerContext(LogicalDirection.Forward);
System\windows\Documents\TextEditorMouse.cs (1)
722if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.LogicalDirection) == TextPointerContext.EmbeddedElement))
System\windows\Documents\TextEditorSpelling.cs (5)
186textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 192textEnd.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 197if (textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text || 202Invariant.Assert(textEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 263switch (position.GetPointerContext(direction))
System\windows\Documents\TextEditorTyping.cs (10)
652position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 682else if (backspacePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 810position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 811position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 816while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 824if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 843if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 849position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 857while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 864if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextFindEngine.cs (3)
659switch (navigator.GetPointerContext(direction)) 897context = pointer.GetPointerContext(LogicalDirection.Forward); 912context = pointer.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextPointerBase.cs (28)
186TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward); 187TextPointerContext backwardContext = backwardPosition.GetPointerContext(LogicalDirection.Backward); 228TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 229TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 252TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 253TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 270position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 276position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 375while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 421if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 422position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 473if (navigator.GetPointerContext(insideWordDirection) != TextPointerContext.Text) 478if (navigator.GetPointerContext(insideWordDirection) == TextPointerContext.Text) 591TextPointerContext context = position.GetPointerContext(direction); 712thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 713thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 723return thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None && 724thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 739while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 996if (thisNavigator.GetPointerContext(direction) != TextPointerContext.None) 1020TextPointerContext context = thisNavigator.GetPointerContext(direction); 1169thisNavigator.GetPointerContext(direction) == directEnterScope && 1177thisNavigator.GetPointerContext(oppositeDirection) == oppositeEnterScope && 1329TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1330TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1436while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text); 1456while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 1492if (position.GetPointerContext(direction) != context ||
System\Windows\Documents\TextRangeBase.cs (18)
343TextPointerContext nextContext = navigator.GetPointerContext(direction); 368nextContext = navigator.GetPointerContext(direction); 411if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 678TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 762bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 765TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 773symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 1251while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1311if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1312thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1358(insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None || 1359insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1360(insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None || 1361insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1617TextPointerContext context = start.GetPointerContext(LogicalDirection.Forward); 1621context = start.GetPointerContext(LogicalDirection.Forward); 1626context = end.GetPointerContext(LogicalDirection.Backward); 1630context = end.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextRangeEdit.cs (1)
1248if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeSerialization.cs (6)
76range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 205while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 213TextPointerContext runType = textReader.GetPointerContext(LogicalDirection.Forward); 1847Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1874Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1923while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\windows\Documents\TextSelection.cs (9)
481if (caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 482caretPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 500if (caretPosition.GetPointerContext(direction) == TextPointerContext.Text && 513(caretPosition.GetPointerContext(oppositeDirection) != TextPointerContext.Text || 1756return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1757This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1951if (cursorPosition.GetPointerContext(cursorPosition.LogicalDirection) == TextPointerContext.EmbeddedElement) 2179caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2196caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (9)
415TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward); 1491if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 2452Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 2511Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement); 2553Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 2905while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 3180TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Backward); 3460TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);