92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1016else if (nextContext == TextPointerContext.ElementEnd)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
796if ((currentContext == TextPointerContext.ElementEnd || currentContext == TextPointerContext.ElementStart) && 829if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 836if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextBoxLine.cs (1)
85case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1044case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\Line.cs (2)
162case TextPointerContext.ElementEnd: 611if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\LineBase.cs (1)
250Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
113else if (runType == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
109case TextPointerContext.ElementEnd:
MS\Internal\Text\ComplexLine.cs (3)
52case TextPointerContext.ElementEnd: 300if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 472Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
769if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 925if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 1249return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1044case TextPointerContext.ElementEnd:
System\Windows\Documents\FixedTextPointer.cs (2)
149if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.ElementEnd)) 166if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.ElementEnd)
System\Windows\Documents\FixedTextView.cs (2)
1089if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.ElementEnd) 1097case TextPointerContext.ElementEnd:
System\Windows\Documents\FlowPosition.cs (2)
296else if (tst == TextPointerContext.ElementEnd) 766return TextPointerContext.ElementEnd;
System\Windows\Documents\Highlights.cs (1)
200case TextPointerContext.ElementEnd:
System\Windows\Documents\ImmComposition.cs (2)
1427case TextPointerContext.ElementEnd: 1478case TextPointerContext.ElementEnd:
System\Windows\Documents\Span.cs (1)
227else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\Speller.cs (2)
1715case TextPointerContext.ElementEnd: 1810else if (context == TextPointerContext.ElementEnd &&
System\windows\Documents\TextEditorSpelling.cs (1)
273case TextPointerContext.ElementEnd:
System\windows\Documents\TextEditorTyping.cs (2)
811position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 849position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd)
System\Windows\Documents\TextFindEngine.cs (3)
700case TextPointerContext.ElementEnd: 904else if (context == TextPointerContext.ElementEnd && 914if (context == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextPointer.cs (4)
501/// <para>Returns <see cref="TextPointerContext.ElementEnd"/> if the TextPointer 1613while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3454symbolType = (node.ParentNode != null) ? TextPointerContext.ElementEnd : TextPointerContext.None; 3467symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementEnd;
System\Windows\Documents\TextPointerBase.cs (14)
190forwardContext == TextPointerContext.ElementEnd 197forwardContext == TextPointerContext.ElementEnd && TextSchema.IsNonFormattingInline(backwardType) && 201backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 205backwardContext == TextPointerContext.ElementEnd && 207(forwardContext != TextPointerContext.ElementEnd || !IsAtNonMergeableInlineEnd(forwardPosition)) 231if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 276position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 422position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 592if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 712thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 724thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1151oppositeEnterScope = TextPointerContext.ElementEnd; 1157directEnterScope = TextPointerContext.ElementEnd; 1489TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
351nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Backward) && // 355(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || // 684case TextPointerContext.ElementEnd: 767if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.ElementEnd && 1361insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1618while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1627while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (14)
72else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 268while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 278position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 331inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 532if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 555Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 1270if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1271!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1283while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1298while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1440startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1589leaveScopeSymbol = TextPointerContext.ElementEnd; 1597enterScopeSymbol = TextPointerContext.ElementEnd; 2188end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextRangeEditLists.cs (5)
153Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 174while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 209if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 605while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 634while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEditTables.cs (1)
813while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeSerialization.cs (6)
260case TextPointerContext.ElementEnd: 1457if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1515Invariant.Assert(backwardFromEnd == TextPointerContext.ElementEnd, "Expecting last closing tag of pasted fragment"); 1524Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1525Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), 1527Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
443case TextPointerContext.ElementEnd: 2553Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3187case TextPointerContext.ElementEnd: 3471else if (forwardContext != TextPointerContext.ElementEnd)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
80return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;