5 implementations of GetPointerContext
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
140TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
106TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
76TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
src\Framework\System\Windows\Documents\TextPointer.cs (1)
2408TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
152 references to GetPointerContext
PresentationFramework (152)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1015TextPointerContext nextContext = cursor.GetPointerContext(LogicalDirection.Forward);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
823TextPointerContext currentContext = pointer.GetPointerContext(direction); 857if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 864if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (2)
329if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 350else if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1058switch (textPointer.GetPointerContext(LogicalDirection.Forward))
src\Framework\MS\Internal\PtsHost\Line.cs (1)
211while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
84TextPointerContext runType = textPointer.GetPointerContext(LogicalDirection.Forward);
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
161while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
807RectFromDcpSimpleLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline); 812RectFromDcpCompositeLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
895while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 925if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
100while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
244return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
602TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (14)
563TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward); 566TextPointerContext backwardContext = _start.GetPointerContext(LogicalDirection.Backward); 580TextPointerContext backwardContext = _end.GetPointerContext(LogicalDirection.Backward); 583TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward); 764while (position.GetPointerContext(direction) == TextPointerContext.Text) 777TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 935if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 949if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1041while (position.GetPointerContext(direction) == TextPointerContext.Text) 1054while (position.GetPointerContext(direction) != TextPointerContext.Text) 1064while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 1072if (position.GetPointerContext(direction) != TextPointerContext.None) 1222while (IsElementBoundary(start.GetPointerContext(LogicalDirection.Forward))) 1229while (IsElementBoundary(end.GetPointerContext(LogicalDirection.Backward)))
src\Framework\System\Windows\Documents\CompositionAdorner.cs (4)
490while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 495Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 629while ((startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) && 630(startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text))
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
138return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
90/// <see cref="ITextPointer.GetPointerContext"/> 641/// <see cref="ITextPointer.GetPointerContext"/> 891TextPointerContext context = thisTp.ChildPointer.GetPointerContext(direction); 909context = pointer.GetPointerContext(direction); 921context = pointer.GetPointerContext(direction); 942return tp.ChildPointer.GetPointerContext(direction); 990if (tp1.ChildPointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None || 991tp2.ChildPointer.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.None) 1000if (block.ChildContainer.Start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1059TextPointerContext tst = childTn.GetPointerContext(scanDir);
src\Framework\System\Windows\Documents\FixedElement.cs (1)
276TextPointerContext tpc = pos.GetPointerContext(LogicalDirection.Forward);
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
123return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
193if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1102TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1126symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
src\Framework\System\Windows\Documents\ImmComposition.cs (4)
1566switch (navigator.GetPointerContext(LogicalDirection.Backward)) 1618switch (navigator.GetPointerContext(LogicalDirection.Forward)) 1721switch (position.GetPointerContext(LogicalDirection.Backward)) 1737switch (position.GetPointerContext(LogicalDirection.Forward))
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
110return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
74/// <see cref="ITextPointer.GetPointerContext"/>
src\Framework\System\Windows\Documents\Paragraph.cs (1)
260TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
src\Framework\System\Windows\Documents\Speller.cs (4)
1180if (position.GetPointerContext(direction) == TextPointerContext.None) 1464searchPosition.GetPointerContext(direction) != TextPointerContext.None); 1817switch (position.GetPointerContext(LogicalDirection.Forward)) 1935context = pointer.GetPointerContext(LogicalDirection.Forward);
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
737if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.LogicalDirection) == TextPointerContext.EmbeddedElement))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (5)
189textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 195textEnd.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 200if (textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text || 205Invariant.Assert(textEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 266switch (position.GetPointerContext(direction))
src\Framework\System\windows\Documents\TextEditorTyping.cs (10)
677position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 707else if (backspacePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 836position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 837position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 842while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 850if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 869if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 875position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 883while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 890if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
678switch (navigator.GetPointerContext(direction)) 916context = pointer.GetPointerContext(LogicalDirection.Forward); 931context = pointer.GetPointerContext(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\TextPointerBase.cs (28)
190TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward); 191TextPointerContext backwardContext = backwardPosition.GetPointerContext(LogicalDirection.Backward); 232TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 233TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 256TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 257TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 274position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 280position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 379while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 425if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 426position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 477if (navigator.GetPointerContext(insideWordDirection) != TextPointerContext.Text) 482if (navigator.GetPointerContext(insideWordDirection) == TextPointerContext.Text) 595TextPointerContext context = position.GetPointerContext(direction); 719thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 720thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 730return thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None && 731thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 746while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1003if (thisNavigator.GetPointerContext(direction) != TextPointerContext.None) 1027TextPointerContext context = thisNavigator.GetPointerContext(direction); 1176thisNavigator.GetPointerContext(direction) == directEnterScope && 1184thisNavigator.GetPointerContext(oppositeDirection) == oppositeEnterScope && 1336TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1337TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1443while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text); 1463while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 1499if (position.GetPointerContext(direction) != context ||
src\Framework\System\Windows\Documents\TextRangeBase.cs (18)
357TextPointerContext nextContext = navigator.GetPointerContext(direction); 382nextContext = navigator.GetPointerContext(direction); 425if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 692TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 776bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 779TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 787symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 1265while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1328if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1329thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1375(insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None || 1376insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1377(insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None || 1378insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1648TextPointerContext context = start.GetPointerContext(LogicalDirection.Forward); 1652context = start.GetPointerContext(LogicalDirection.Forward); 1657context = end.GetPointerContext(LogicalDirection.Backward); 1661context = end.GetPointerContext(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
1252if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
84range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 217while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 225TextPointerContext runType = textReader.GetPointerContext(LogicalDirection.Forward); 1873Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1900Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1949while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\windows\Documents\TextSelection.cs (9)
487if (caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 488caretPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 506if (caretPosition.GetPointerContext(direction) == TextPointerContext.Text && 519(caretPosition.GetPointerContext(oppositeDirection) != TextPointerContext.Text || 1767return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1768This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1962if (cursorPosition.GetPointerContext(cursorPosition.LogicalDirection) == TextPointerContext.EmbeddedElement) 2190caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2207caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
src\Framework\System\Windows\Documents\TextStore.cs (9)
319TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward); 1367if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 2318Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 2377Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement); 2419Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 2805while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 3100TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Backward); 3393TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);