5 implementations of GetPointerContext
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
138TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
88TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\FixedTextPointer.cs (1)
100TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\NullTextNavigator.cs (1)
74TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\TextPointer.cs (1)
2388TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
152 references to GetPointerContext
PresentationFramework (152)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
998TextPointerContext nextContext = cursor.GetPointerContext(LogicalDirection.Forward);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
801TextPointerContext currentContext = pointer.GetPointerContext(direction); 835if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 842if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextContainerHelper.cs (2)
324if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 345else if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1032switch (textPointer.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
208while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\ListParagraph.cs (1)
80TextPointerContext runType = textPointer.GetPointerContext(LogicalDirection.Forward);
MS\Internal\PtsHost\OptimalTextSource.cs (1)
157while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\TextParaClient.cs (2)
707RectFromDcpSimpleLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline); 712RectFromDcpCompositeLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline);
MS\Internal\PtsHost\TextParagraph.cs (2)
888while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 918if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (1)
97while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
System\Windows\Controls\PasswordTextContainer.cs (1)
238return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Controls\TextAdaptor.cs (1)
618TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextRangeAdaptor.cs (14)
555TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward); 558TextPointerContext backwardContext = _start.GetPointerContext(LogicalDirection.Backward); 572TextPointerContext backwardContext = _end.GetPointerContext(LogicalDirection.Backward); 575TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward); 756while (position.GetPointerContext(direction) == TextPointerContext.Text) 769TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 927if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 941if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1032while (position.GetPointerContext(direction) == TextPointerContext.Text) 1045while (position.GetPointerContext(direction) != TextPointerContext.Text) 1055while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 1063if (position.GetPointerContext(direction) != TextPointerContext.None) 1213while (IsElementBoundary(start.GetPointerContext(LogicalDirection.Forward))) 1220while (IsElementBoundary(end.GetPointerContext(LogicalDirection.Backward)))
System\Windows\Documents\CompositionAdorner.cs (4)
488while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 493Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 627while ((startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) && 628(startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text))
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
134return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
86/// <see cref="ITextPointer.GetPointerContext"/> 637/// <see cref="ITextPointer.GetPointerContext"/> 874TextPointerContext context = thisTp.ChildPointer.GetPointerContext(direction); 892context = pointer.GetPointerContext(direction); 904context = pointer.GetPointerContext(direction); 925return tp.ChildPointer.GetPointerContext(direction); 973if (tp1.ChildPointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None || 974tp2.ChildPointer.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.None) 983if (block.ChildContainer.Start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1042TextPointerContext tst = childTn.GetPointerContext(scanDir);
System\Windows\Documents\FixedElement.cs (1)
271TextPointerContext tpc = pos.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\FixedTextContainer.cs (1)
119return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\FixedTextView.cs (3)
186if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1090TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1114symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
System\Windows\Documents\ImmComposition.cs (4)
1419switch (navigator.GetPointerContext(LogicalDirection.Backward)) 1471switch (navigator.GetPointerContext(LogicalDirection.Forward)) 1570switch (position.GetPointerContext(LogicalDirection.Backward)) 1586switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\NullTextContainer.cs (1)
107return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\NullTextNavigator.cs (1)
72/// <see cref="ITextPointer.GetPointerContext"/>
System\Windows\Documents\Paragraph.cs (1)
253TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\Speller.cs (4)
1120if (position.GetPointerContext(direction) == TextPointerContext.None) 1399searchPosition.GetPointerContext(direction) != TextPointerContext.None); 1714switch (position.GetPointerContext(LogicalDirection.Forward)) 1832context = pointer.GetPointerContext(LogicalDirection.Forward);
System\windows\Documents\TextEditorMouse.cs (1)
736if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.LogicalDirection) == TextPointerContext.EmbeddedElement))
System\windows\Documents\TextEditorSpelling.cs (5)
187textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 193textEnd.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 198if (textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text || 203Invariant.Assert(textEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 264switch (position.GetPointerContext(direction))
System\windows\Documents\TextEditorTyping.cs (10)
661position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 691else if (backspacePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 819position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 820position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 825while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 833if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 852if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 858position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 866while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 873if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextFindEngine.cs (3)
667switch (navigator.GetPointerContext(direction)) 905context = pointer.GetPointerContext(LogicalDirection.Forward); 920context = pointer.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextPointerBase.cs (28)
188TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward); 189TextPointerContext backwardContext = backwardPosition.GetPointerContext(LogicalDirection.Backward); 230TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 231TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 254TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 255TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 272position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 278position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 377while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 423if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 424position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 475if (navigator.GetPointerContext(insideWordDirection) != TextPointerContext.Text) 480if (navigator.GetPointerContext(insideWordDirection) == TextPointerContext.Text) 593TextPointerContext context = position.GetPointerContext(direction); 717thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 718thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 728return thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None && 729thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 744while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1001if (thisNavigator.GetPointerContext(direction) != TextPointerContext.None) 1025TextPointerContext context = thisNavigator.GetPointerContext(direction); 1174thisNavigator.GetPointerContext(direction) == directEnterScope && 1182thisNavigator.GetPointerContext(oppositeDirection) == oppositeEnterScope && 1334TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1335TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1441while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text); 1461while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 1497if (position.GetPointerContext(direction) != context ||
System\Windows\Documents\TextRangeBase.cs (18)
346TextPointerContext nextContext = navigator.GetPointerContext(direction); 371nextContext = navigator.GetPointerContext(direction); 414if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 681TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 765bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 768TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 776symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 1254while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1314if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1315thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1361(insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None || 1362insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1363(insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None || 1364insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1620TextPointerContext context = start.GetPointerContext(LogicalDirection.Forward); 1624context = start.GetPointerContext(LogicalDirection.Forward); 1629context = end.GetPointerContext(LogicalDirection.Backward); 1633context = end.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextRangeEdit.cs (1)
1250if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeSerialization.cs (6)
82range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 211while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 219TextPointerContext runType = textReader.GetPointerContext(LogicalDirection.Forward); 1853Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1880Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1929while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\windows\Documents\TextSelection.cs (9)
484if (caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 485caretPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 503if (caretPosition.GetPointerContext(direction) == TextPointerContext.Text && 516(caretPosition.GetPointerContext(oppositeDirection) != TextPointerContext.Text || 1759return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1760This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1954if (cursorPosition.GetPointerContext(cursorPosition.LogicalDirection) == TextPointerContext.EmbeddedElement) 2182caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2199caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (9)
426TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward); 1502if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 2472Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 2531Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement); 2573Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 2925while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 3200TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Backward); 3480TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);