514 references to TextPointerContext
PresentationFramework (514)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
1015TextPointerContext nextContext = cursor.GetPointerContext(LogicalDirection.Forward); 1016if (nextContext == TextPointerContext.ElementStart) 1042else if (nextContext == TextPointerContext.ElementEnd) 1056else if (nextContext == TextPointerContext.Text || nextContext == TextPointerContext.EmbeddedElement)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (7)
823TextPointerContext currentContext = pointer.GetPointerContext(direction); 824if ((currentContext == TextPointerContext.ElementEnd || currentContext == TextPointerContext.ElementStart) && 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\HostedElements.cs (4)
119if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 120_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 194case TextPointerContext.ElementStart: 198case TextPointerContext.EmbeddedElement:
src\Framework\MS\Internal\Documents\TextBoxLine.cs (5)
85case TextPointerContext.Text: 89case TextPointerContext.None: 93case TextPointerContext.ElementStart: 94case TextPointerContext.ElementEnd: 95case TextPointerContext.EmbeddedElement:
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 (5)
1060case TextPointerContext.Text: 1075case TextPointerContext.ElementEnd: 1086case TextPointerContext.ElementStart: 1120case TextPointerContext.EmbeddedElement: 1126case TextPointerContext.None:
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
987case TextPointerContext.EmbeddedElement:
src\Framework\MS\Internal\PtsHost\Line.cs (11)
163case TextPointerContext.Text: 167case TextPointerContext.ElementStart: 171case TextPointerContext.ElementEnd: 175case TextPointerContext.EmbeddedElement: 179case TextPointerContext.None: 211while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 588TextPointerContext type = TextPointerContext.None; 620if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 624else if (type == TextPointerContext.ElementStart)
src\Framework\MS\Internal\PtsHost\LineBase.cs (4)
95Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 145Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 261Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 315Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (3)
84TextPointerContext runType = textPointer.GetPointerContext(LogicalDirection.Forward); 85if (runType == TextPointerContext.ElementStart) 122else if (runType == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (6)
112case TextPointerContext.Text: 116case TextPointerContext.ElementStart: 120case TextPointerContext.ElementEnd: 124case TextPointerContext.EmbeddedElement: 128case TextPointerContext.None: 161while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (8)
739RectFromDcpSimpleLines(0, 0, LogicalDirection.Forward, TextPointerContext.Text, ref textDetails.u.full, ref rect, ref vrBaseline); 744RectFromDcpCompositeLines(0, 0, LogicalDirection.Forward, TextPointerContext.Text, ref textDetails.u.full, ref rect, ref vrBaseline); 1839TextPointerContext context, 1903if (orientation == LogicalDirection.Backward && originalDcp > 0 && (context == TextPointerContext.Text || context == TextPointerContext.EmbeddedElement)) 1932TextPointerContext context, 2002if (orientation == LogicalDirection.Backward && originalDcp > 0 && (context == TextPointerContext.Text || context == TextPointerContext.EmbeddedElement))
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (3)
895while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 925if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1228if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\MS\Internal\Text\ComplexLine.cs (15)
52case TextPointerContext.Text: 56case TextPointerContext.ElementStart: 60case TextPointerContext.ElementEnd: 64case TextPointerContext.EmbeddedElement: 68case TextPointerContext.None: 100while (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 263TextPointerContext type = TextPointerContext.None; 309if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 313else if (type == TextPointerContext.ElementStart) 343Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 391Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 483Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 533Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
src\Framework\System\Windows\Controls\AccessText.cs (4)
579TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 582case TextPointerContext.Text: 626TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 629case TextPointerContext.Text:
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
242TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (4)
140TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 142TextPointerContext symbolType; 147symbolType = TextPointerContext.None; 151symbolType = TextPointerContext.Text;
src\Framework\System\Windows\Controls\TextAdaptor.cs (3)
602TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 603if (context == TextPointerContext.ElementStart) 613else if (context == TextPointerContext.EmbeddedElement)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3660case TextPointerContext.EmbeddedElement:
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (23)
563TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward); 566TextPointerContext backwardContext = _start.GetPointerContext(LogicalDirection.Backward); 568if (backwardContext == TextPointerContext.None) 570if (forwardContext == TextPointerContext.Text && backwardContext != TextPointerContext.Text) 580TextPointerContext backwardContext = _end.GetPointerContext(LogicalDirection.Backward); 583TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward); 585if (forwardContext == TextPointerContext.None) 587if (forwardContext == TextPointerContext.Text && backwardContext != TextPointerContext.Text) 764while (position.GetPointerContext(direction) == TextPointerContext.Text) 777TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward); 779if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 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) 1258private bool IsElementBoundary(TextPointerContext symbolType) 1260return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
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 (2)
136TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 1008if (textPosition.GetPointerContext(direction) == TextPointerContext.None)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (16)
92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 643public static TextPointerContext GetPointerContext(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 891TextPointerContext context = thisTp.ChildPointer.GetPointerContext(direction); 893if (context != TextPointerContext.None) 903while (context == TextPointerContext.None && !block.IsTail) 915while (context == TextPointerContext.None && !block.IsHead) 939private static TextPointerContext xGapAwareGetSymbolType(DocumentSequenceTextPointer thisTp, LogicalDirection 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); 1062case TextPointerContext.ElementStart: 1067case TextPointerContext.ElementEnd: 1072case TextPointerContext.EmbeddedElement: 1077case TextPointerContext.Text: 1090case TextPointerContext.None:
src\Framework\System\Windows\Documents\FixedElement.cs (4)
276TextPointerContext tpc = pos.GetPointerContext(LogicalDirection.Forward); 277if (tpc == TextPointerContext.Text) 281else if (tpc == TextPointerContext.EmbeddedElement) 285else if (tpc == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
121TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (10)
106TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 119if (_flowPosition.GetPointerContext(direction) != TextPointerContext.Text) 148if (_flowPosition.GetPointerContext(direction) != TextPointerContext.Text) 162TextPointerContext tpc = _flowPosition.GetPointerContext(direction); 163if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.ElementEnd)) 178TextPointerContext tt = _flowPosition.GetPointerContext(direction); 180if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\FixedTextView.cs (11)
193if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None) 1102TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1104if (ftp.FlowPosition.IsBoundary || symbolType == TextPointerContext.None) 1109if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.ElementEnd) 1114case TextPointerContext.ElementStart: 1117case TextPointerContext.ElementEnd: 1127if (symbolType != TextPointerContext.Text && symbolType != TextPointerContext.EmbeddedElement) 1147Debug.Assert(symbolType == TextPointerContext.Text || symbolType == TextPointerContext.EmbeddedElement);
src\Framework\System\Windows\Documents\FlowPosition.cs (15)
183internal TextPointerContext GetPointerContext(LogicalDirection dir) 193Debug.Assert(GetPointerContext(dir) == TextPointerContext.Text); 210Debug.Assert(GetPointerContext(dir) == TextPointerContext.Text); 293TextPointerContext tst; 296(tst = flowScan.GetPointerContext(LogicalDirection.Backward))!= TextPointerContext.None) 298if (tst == TextPointerContext.ElementStart) 307else if (tst == TextPointerContext.ElementEnd) 624private TextPointerContext _vGetSymbolType(LogicalDirection dir) 656return TextPointerContext.None; 769private TextPointerContext _FlowNodeTypeToTextSymbol(FlowNodeType t) 774return TextPointerContext.ElementStart; 777return TextPointerContext.ElementEnd; 780return TextPointerContext.Text; 784return TextPointerContext.EmbeddedElement; 787return TextPointerContext.None;
src\Framework\System\Windows\Documents\Highlights.cs (5)
189case TextPointerContext.None: 193case TextPointerContext.Text: 205case TextPointerContext.EmbeddedElement: 206case TextPointerContext.ElementStart: 207case TextPointerContext.ElementEnd:
src\Framework\System\Windows\Documents\ImmComposition.cs (14)
1568case TextPointerContext.Text: 1577case TextPointerContext.EmbeddedElement: 1581case TextPointerContext.ElementStart: 1582case TextPointerContext.ElementEnd: 1592case TextPointerContext.None: 1620case TextPointerContext.Text: 1628case TextPointerContext.EmbeddedElement: 1632case TextPointerContext.ElementStart: 1633case TextPointerContext.ElementEnd: 1642case TextPointerContext.None: 1723case TextPointerContext.Text: 1726case TextPointerContext.None: 1739case TextPointerContext.Text: 1742case TextPointerContext.None:
src\Framework\System\Windows\Documents\ITextContainer.cs (1)
52TextPointerContext GetPointerContext(StaticTextPointer pointer, LogicalDirection direction);
src\Framework\System\Windows\Documents\ITextPointer.cs (1)
56TextPointerContext GetPointerContext(LogicalDirection direction);
src\Framework\System\Windows\Documents\List.cs (1)
204if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
108TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (2)
76TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 79return TextPointerContext.None;
src\Framework\System\Windows\Documents\Paragraph.cs (3)
260TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 261if (symbolType == TextPointerContext.Text || 262symbolType == TextPointerContext.EmbeddedElement ||
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (8)
114case TextPointerContext.Text: 126while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 133case TextPointerContext.EmbeddedElement: 140case TextPointerContext.ElementStart: 190case TextPointerContext.Text: 197while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0); 201case TextPointerContext.EmbeddedElement: 205case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\Span.cs (2)
230if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 234else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\Speller.cs (9)
1180if (position.GetPointerContext(direction) == TextPointerContext.None) 1464searchPosition.GetPointerContext(direction) != TextPointerContext.None); 1819case TextPointerContext.Text: 1846case TextPointerContext.ElementStart: 1847case TextPointerContext.ElementEnd: 1863case TextPointerContext.EmbeddedElement: 1930TextPointerContext context; 1937if (context == TextPointerContext.ElementStart && 1942else if (context == TextPointerContext.ElementEnd &&
src\Framework\System\Windows\Documents\StaticTextPointer.cs (1)
58internal TextPointerContext GetPointerContext(LogicalDirection direction)
src\Framework\System\Windows\Documents\TextContainer.cs (3)
520TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 524TextPointerContext context; 529context = TextPointerContext.Text;
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
737if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.LogicalDirection) == TextPointerContext.EmbeddedElement))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (9)
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 && 268case TextPointerContext.Text: 275case TextPointerContext.ElementStart: 276case TextPointerContext.ElementEnd: 287case TextPointerContext.EmbeddedElement: 288case TextPointerContext.None:
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\TextEffectResolver.cs (2)
114while (navigator.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text 124while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (1)
147Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
src\Framework\System\Windows\Documents\TextFindEngine.cs (10)
680case TextPointerContext.Text: 717case TextPointerContext.None: 718case TextPointerContext.ElementStart: 719case TextPointerContext.ElementEnd: 749case TextPointerContext.EmbeddedElement: 909TextPointerContext context; 918if (context == TextPointerContext.ElementStart && 923else if (context == TextPointerContext.ElementEnd && 933if (context == TextPointerContext.ElementEnd && 938else if (context == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextPointer.cs (25)
48/// <para>Class <see cref="TextPointerContext"/> is an enum specifying what kind of 510/// <para>Returns <see cref="TextPointerContext.None"/> if this TextPointer 515/// <para>Returns <see cref="TextPointerContext.ElementStart"/> if the TextPointer 517/// <para>Returns <see cref="TextPointerContext.ElementEnd"/> if the TextPointer 519/// <para>Returns <see cref="TextPointerContext.Text"/> if the TextPointer 522/// <para>Returns <see cref="TextPointerContext.EmbeddedElement"/> is the TextPointer 555public TextPointerContext GetPointerContext(LogicalDirection direction) 1629TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1632while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 2408TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 3458internal static TextPointerContext GetPointerContextForward(TextTreeNode node, ElementEdge edge) 3462TextPointerContext symbolType; 3485symbolType = (node.ParentNode != null) ? TextPointerContext.ElementEnd : TextPointerContext.None; 3498symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementEnd; 3504symbolType = TextPointerContext.Text; 3512internal static TextPointerContext GetPointerContextBackward(TextTreeNode node, ElementEdge edge) 3514TextPointerContext symbolType; 3530symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementStart; 3537symbolType = (node.ParentNode != null) ? TextPointerContext.ElementStart : TextPointerContext.None; 3558symbolType = TextPointerContext.Text;
src\Framework\System\Windows\Documents\TextPointerBase.cs (59)
190TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward); 191TextPointerContext backwardContext = backwardPosition.GetPointerContext(LogicalDirection.Backward); 193backwardContext == TextPointerContext.ElementStart && 194forwardContext == TextPointerContext.ElementEnd 197backwardContext == TextPointerContext.ElementStart && TextSchema.IsNonFormattingInline(forwardType) && 201forwardContext == TextPointerContext.ElementEnd && TextSchema.IsNonFormattingInline(backwardType) && 205backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 209backwardContext == TextPointerContext.ElementEnd && 211(forwardContext != TextPointerContext.ElementEnd || !IsAtNonMergeableInlineEnd(forwardPosition)) 213forwardContext == TextPointerContext.ElementStart && 215(backwardContext != TextPointerContext.ElementStart || !IsAtNonMergeableInlineStart(backwardPosition)) 232TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 233TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 235if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 241else if (backwardContext == TextPointerContext.None && forwardContext == TextPointerContext.None) 256TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 257TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 259return (forwardContext == TextPointerContext.ElementStart && 260(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.None) && 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); 596if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 605else if (context == TextPointerContext.EmbeddedElement) 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) 784paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1003if (thisNavigator.GetPointerContext(direction) != TextPointerContext.None) 1027TextPointerContext context = thisNavigator.GetPointerContext(direction); 1028if (context == TextPointerContext.ElementStart || context == TextPointerContext.None) 1150TextPointerContext directEnterScope; 1151TextPointerContext oppositeEnterScope; 1157directEnterScope = TextPointerContext.ElementStart; 1158oppositeEnterScope = TextPointerContext.ElementEnd; 1164directEnterScope = TextPointerContext.ElementEnd; 1165oppositeEnterScope = TextPointerContext.ElementStart; 1336TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1337TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1339if (backwardContext == TextPointerContext.Text && forwardContext == TextPointerContext.Text) 1443while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text); 1463while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 1496TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\TextRangeBase.cs (30)
357TextPointerContext nextContext = navigator.GetPointerContext(direction); 361if (nextContext == TextPointerContext.None // 364(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || // 365nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Backward) && // 369(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || // 370nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Backward) && // 425if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 692TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 695case TextPointerContext.Text: 698case TextPointerContext.ElementEnd: 721case TextPointerContext.EmbeddedElement : 725case TextPointerContext.ElementStart : 776bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 779TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 781if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.ElementEnd && 788if (symbolType == TextPointerContext.ElementStart) 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); 1649while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1654if (context == TextPointerContext.EmbeddedElement) 1658while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1663if (context == TextPointerContext.EmbeddedElement && start.GetOffsetToPosition(end) == 1)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (43)
70if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 76else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 267while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 272while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 282position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 283position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 334inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 335inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 421if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 536if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 543else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 559Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 560Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 660while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1035if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1252if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1271TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1272TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1274if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1275!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1282while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1287while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1302while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1311while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1443while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1444startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1584TextPointerContext enterScopeSymbol; 1585TextPointerContext leaveScopeSymbol; 1592enterScopeSymbol = TextPointerContext.ElementStart; 1593leaveScopeSymbol = TextPointerContext.ElementEnd; 1601enterScopeSymbol = TextPointerContext.ElementEnd; 1602leaveScopeSymbol = TextPointerContext.ElementStart; 1621TextPointerContext pointerContext = nextPosition.GetPointerContext(direction); 1623if (pointerContext == TextPointerContext.Text || pointerContext == TextPointerContext.EmbeddedElement) 1666Invariant.Assert(pointerContext == TextPointerContext.None, "Unknown pointer context"); 2087if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2122if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2191start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2192end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 2238if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (11)
80while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 148ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 156Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 157Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 178while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 190while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 213if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 214mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 609while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 638while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 649while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (5)
751bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 814while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 818while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1088cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2095movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (32)
84range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 217while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 225TextPointerContext runType = textReader.GetPointerContext(LogicalDirection.Forward); 229case TextPointerContext.ElementStart: 272case TextPointerContext.ElementEnd: 314case TextPointerContext.Text: 328case TextPointerContext.EmbeddedElement: 1444while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1449while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1487if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1505if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1542TextPointerContext forwardFromStart = start.GetPointerContext(LogicalDirection.Forward); 1543TextPointerContext backwardFromEnd = end.GetPointerContext(LogicalDirection.Backward); 1544Invariant.Assert(forwardFromStart == TextPointerContext.ElementStart, "Expecting first opening tag of pasted fragment"); 1545Invariant.Assert(backwardFromEnd == TextPointerContext.ElementEnd, "Expecting last closing tag of pasted fragment"); 1550TextPointerContext backwardFromStart = start.GetPointerContext(LogicalDirection.Backward); 1551TextPointerContext forwardFromEnd = end.GetPointerContext(LogicalDirection.Forward); 1552Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1553Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), "An element preceding a pasted fragment is expected to be a " + itemType.Name); 1554Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment"); 1555Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name); 1576((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None; 1636TextPointerContext passedContext = start.GetPointerContext(LogicalDirection.Backward); 1637if (passedContext == TextPointerContext.ElementStart) 1682Invariant.Assert(passedContext != TextPointerContext.None, "TextPointerContext.None is not expected"); 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\TextSchema.cs (2)
896TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward); 897if (forwardContext == 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 (22)
319TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward); 323case TextPointerContext.Text: 327case TextPointerContext.EmbeddedElement: 331case TextPointerContext.ElementStart: 347case TextPointerContext.ElementEnd: 352case TextPointerContext.None: 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); 3103case TextPointerContext.ElementStart: 3107case TextPointerContext.ElementEnd: 3108case TextPointerContext.EmbeddedElement: 3111case TextPointerContext.Text: 3115Invariant.Assert(context != TextPointerContext.None); 3353if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 3393TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward); 3395if (forwardContext == TextPointerContext.ElementStart) 3404else if (forwardContext != TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextTreeFixupNode.cs (2)
114internal override TextPointerContext GetPointerContext(LogicalDirection direction) 117return TextPointerContext.None;
src\Framework\System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
60Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreeNode.cs (1)
374internal abstract TextPointerContext GetPointerContext(LogicalDirection direction);
src\Framework\System\Windows\Documents\TextTreeObjectNode.cs (2)
79internal override TextPointerContext GetPointerContext(LogicalDirection direction) 81return TextPointerContext.EmbeddedElement;
src\Framework\System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
59Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreeRootNode.cs (2)
92internal override TextPointerContext GetPointerContext(LogicalDirection direction) 95return TextPointerContext.None;
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (3)
85internal override TextPointerContext GetPointerContext(LogicalDirection direction) 87return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (2)
104internal override TextPointerContext GetPointerContext(LogicalDirection direction) 106return TextPointerContext.Text;