92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1012else if (nextContext == TextPointerContext.ElementEnd)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
799if ((currentContext == TextPointerContext.ElementEnd || currentContext == TextPointerContext.ElementStart) && 832if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 839if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextBoxLine.cs (1)
84case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1025case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\Line.cs (2)
150case TextPointerContext.ElementEnd: 598if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\LineBase.cs (1)
245Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
103else if (runType == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
100case TextPointerContext.ElementEnd:
MS\Internal\Text\ComplexLine.cs (3)
51case TextPointerContext.ElementEnd: 299if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 471Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
768if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 924if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 1248return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1040case TextPointerContext.ElementEnd:
System\Windows\Documents\FixedTextPointer.cs (2)
146if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.ElementEnd)) 163if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.ElementEnd)
System\Windows\Documents\FixedTextView.cs (2)
1080if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.ElementEnd) 1088case TextPointerContext.ElementEnd:
System\Windows\Documents\FlowPosition.cs (2)
295else if (tst == TextPointerContext.ElementEnd) 765return TextPointerContext.ElementEnd;
System\Windows\Documents\Highlights.cs (1)
199case TextPointerContext.ElementEnd:
System\Windows\Documents\ImmComposition.cs (2)
1413case TextPointerContext.ElementEnd: 1464case TextPointerContext.ElementEnd:
System\Windows\Documents\Span.cs (1)
217else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\Speller.cs (2)
1711case TextPointerContext.ElementEnd: 1806else if (context == TextPointerContext.ElementEnd &&
System\windows\Documents\TextEditorSpelling.cs (1)
272case TextPointerContext.ElementEnd:
System\windows\Documents\TextEditorTyping.cs (2)
801position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 839position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd)
System\Windows\Documents\TextFindEngine.cs (3)
698case TextPointerContext.ElementEnd: 902else if (context == TextPointerContext.ElementEnd && 912if (context == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextPointer.cs (4)
500/// <para>Returns <see cref="TextPointerContext.ElementEnd"/> if the TextPointer 1612while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3453symbolType = (node.ParentNode != null) ? TextPointerContext.ElementEnd : TextPointerContext.None; 3466symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementEnd;
System\Windows\Documents\TextPointerBase.cs (14)
189forwardContext == TextPointerContext.ElementEnd 196forwardContext == TextPointerContext.ElementEnd && TextSchema.IsNonFormattingInline(backwardType) && 200backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 204backwardContext == TextPointerContext.ElementEnd && 206(forwardContext != TextPointerContext.ElementEnd || !IsAtNonMergeableInlineEnd(forwardPosition)) 230if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 275position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 421position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 591if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 711thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 723thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1150oppositeEnterScope = TextPointerContext.ElementEnd; 1156directEnterScope = TextPointerContext.ElementEnd; 1488TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
350nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Backward) && // 354(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || // 683case TextPointerContext.ElementEnd: 766if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.ElementEnd && 1360insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1617while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1626while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (14)
71else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 267while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 277position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 330inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 531if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 554Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 1269if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1270!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1282while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1297while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1439startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1588leaveScopeSymbol = TextPointerContext.ElementEnd; 1596enterScopeSymbol = TextPointerContext.ElementEnd; 2187end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextRangeEditLists.cs (5)
152Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 173while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 208if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 606while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 635while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEditTables.cs (1)
816while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeSerialization.cs (6)
259case TextPointerContext.ElementEnd: 1456if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1514Invariant.Assert(backwardFromEnd == TextPointerContext.ElementEnd, "Expecting last closing tag of pasted fragment"); 1523Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1524Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), 1526Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
442case TextPointerContext.ElementEnd: 2546Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3182case TextPointerContext.ElementEnd: 3463else if (forwardContext != TextPointerContext.ElementEnd)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;