5 implementations of GetPointerContext
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
133TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
79TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\FixedTextPointer.cs (1)
92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\NullTextNavigator.cs (1)
68TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
System\Windows\Documents\TextPointer.cs (1)
2382TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
152 references to GetPointerContext
PresentationFramework (152)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
987TextPointerContext nextContext = cursor.GetPointerContext(LogicalDirection.Forward);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
798TextPointerContext currentContext = pointer.GetPointerContext(direction); 832if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 839if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextContainerHelper.cs (2)
320if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 341else if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1008switch (textPointer.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
190while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\ListParagraph.cs (1)
67TextPointerContext runType = textPointer.GetPointerContext(LogicalDirection.Forward);
MS\Internal\PtsHost\OptimalTextSource.cs (1)
141while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
MS\Internal\PtsHost\TextParaClient.cs (2)
700RectFromDcpSimpleLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline); 705RectFromDcpCompositeLines(dcp, originalDcp, position.LogicalDirection, position.GetPointerContext(position.LogicalDirection), ref textDetails.u.full, ref rect, ref vrBaseline);
MS\Internal\PtsHost\TextParagraph.cs (2)
864while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 894if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (1)
91while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
System\Windows\Controls\PasswordTextContainer.cs (1)
234return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Controls\TextAdaptor.cs (1)
608TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextRangeAdaptor.cs (14)
552TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward); 555TextPointerContext backwardContext = _start.GetPointerContext(LogicalDirection.Backward); 569TextPointerContext backwardContext = _end.GetPointerContext(LogicalDirection.Backward); 572TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward); 753while (position.GetPointerContext(direction) == TextPointerContext.Text) 766TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 924if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 938if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1029while (position.GetPointerContext(direction) == TextPointerContext.Text) 1042while (position.GetPointerContext(direction) != TextPointerContext.Text) 1052while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 1060if (position.GetPointerContext(direction) != TextPointerContext.None) 1210while (IsElementBoundary(start.GetPointerContext(LogicalDirection.Forward))) 1217while (IsElementBoundary(end.GetPointerContext(LogicalDirection.Backward)))
System\Windows\Documents\CompositionAdorner.cs (4)
483while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 488Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 622while ((startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) && 623(startLinePointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text))
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
117return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
77/// <see cref="ITextPointer.GetPointerContext"/> 627/// <see cref="ITextPointer.GetPointerContext"/> 864TextPointerContext context = thisTp.ChildPointer.GetPointerContext(direction); 882context = pointer.GetPointerContext(direction); 894context = pointer.GetPointerContext(direction); 915return tp.ChildPointer.GetPointerContext(direction); 963if (tp1.ChildPointer.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None || 964tp2.ChildPointer.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.None) 973if (block.ChildContainer.Start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1032TextPointerContext tst = childTn.GetPointerContext(scanDir);
System\Windows\Documents\FixedElement.cs (1)
266TextPointerContext tpc = pos.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\FixedTextContainer.cs (1)
102return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\FixedTextView.cs (3)
175if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1073TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1097symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
System\Windows\Documents\ImmComposition.cs (4)
1397switch (navigator.GetPointerContext(LogicalDirection.Backward)) 1449switch (navigator.GetPointerContext(LogicalDirection.Forward)) 1548switch (position.GetPointerContext(LogicalDirection.Backward)) 1564switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\NullTextContainer.cs (1)
102return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
System\Windows\Documents\NullTextNavigator.cs (1)
66/// <see cref="ITextPointer.GetPointerContext"/>
System\Windows\Documents\Paragraph.cs (1)
252TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\Speller.cs (4)
1097if (position.GetPointerContext(direction) == TextPointerContext.None) 1376searchPosition.GetPointerContext(direction) != TextPointerContext.None); 1681switch (position.GetPointerContext(LogicalDirection.Forward)) 1799context = pointer.GetPointerContext(LogicalDirection.Forward);
System\windows\Documents\TextEditorMouse.cs (1)
718if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.LogicalDirection) == TextPointerContext.EmbeddedElement))
System\windows\Documents\TextEditorSpelling.cs (5)
185textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 191textEnd.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 196if (textStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text || 201Invariant.Assert(textEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 262switch (position.GetPointerContext(direction))
System\windows\Documents\TextEditorTyping.cs (10)
642position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) 672else if (backspacePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text) 800position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 801position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 806while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 814if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 833if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 839position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 847while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 854if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextFindEngine.cs (3)
657switch (navigator.GetPointerContext(direction)) 895context = pointer.GetPointerContext(LogicalDirection.Forward); 910context = pointer.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextPointerBase.cs (28)
185TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward); 186TextPointerContext backwardContext = backwardPosition.GetPointerContext(LogicalDirection.Backward); 227TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 228TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 251TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 252TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 269position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 275position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 374while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 420if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 421position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 472if (navigator.GetPointerContext(insideWordDirection) != TextPointerContext.Text) 477if (navigator.GetPointerContext(insideWordDirection) == TextPointerContext.Text) 590TextPointerContext context = position.GetPointerContext(direction); 711thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 712thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 722return thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None && 723thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 738while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 995if (thisNavigator.GetPointerContext(direction) != TextPointerContext.None) 1019TextPointerContext context = thisNavigator.GetPointerContext(direction); 1168thisNavigator.GetPointerContext(direction) == directEnterScope && 1176thisNavigator.GetPointerContext(oppositeDirection) == oppositeEnterScope && 1328TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1329TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1435while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text); 1455while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 1491if (position.GetPointerContext(direction) != context ||
System\Windows\Documents\TextRangeBase.cs (18)
342TextPointerContext nextContext = navigator.GetPointerContext(direction); 367nextContext = navigator.GetPointerContext(direction); 410if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 677TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 761bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 764TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 772symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 1250while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1310if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1311thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1357(insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None || 1358insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1359(insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None || 1360insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1616TextPointerContext context = start.GetPointerContext(LogicalDirection.Forward); 1620context = start.GetPointerContext(LogicalDirection.Forward); 1625context = end.GetPointerContext(LogicalDirection.Backward); 1629context = end.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextRangeEdit.cs (1)
1247if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeSerialization.cs (6)
75range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 204while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 212TextPointerContext runType = textReader.GetPointerContext(LogicalDirection.Forward); 1846Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1873Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1922while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\windows\Documents\TextSelection.cs (9)
468if (caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 469caretPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 487if (caretPosition.GetPointerContext(direction) == TextPointerContext.Text && 500(caretPosition.GetPointerContext(oppositeDirection) != TextPointerContext.Text || 1740return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1741This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1935if (cursorPosition.GetPointerContext(cursorPosition.LogicalDirection) == TextPointerContext.EmbeddedElement) 2163caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2180caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (9)
414TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward); 1487if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 2445Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 2504Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement); 2546Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 2900while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 3175TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Backward); 3452TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);