92 references to ElementEnd
PresentationFramework (92)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1042else if (nextContext == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
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\TextBoxLine.cs (1)
94case TextPointerContext.ElementEnd:
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1075case TextPointerContext.ElementEnd:
src\Framework\MS\Internal\PtsHost\Line.cs (2)
171case TextPointerContext.ElementEnd: 620if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\PtsHost\LineBase.cs (1)
261Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
122else if (runType == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
120case TextPointerContext.ElementEnd:
src\Framework\MS\Internal\Text\ComplexLine.cs (3)
60case TextPointerContext.ElementEnd: 309if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 483Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
779if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 935if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 1260return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1067case TextPointerContext.ElementEnd:
src\Framework\System\Windows\Documents\FixedTextPointer.cs (2)
163if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.ElementEnd)) 180if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
1109if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.ElementEnd) 1117case TextPointerContext.ElementEnd:
src\Framework\System\Windows\Documents\FlowPosition.cs (2)
307else if (tst == TextPointerContext.ElementEnd) 777return TextPointerContext.ElementEnd;
src\Framework\System\Windows\Documents\Highlights.cs (1)
207case TextPointerContext.ElementEnd:
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1582case TextPointerContext.ElementEnd: 1633case TextPointerContext.ElementEnd:
src\Framework\System\Windows\Documents\Span.cs (1)
234else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\Speller.cs (2)
1847case TextPointerContext.ElementEnd: 1942else if (context == TextPointerContext.ElementEnd &&
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
276case TextPointerContext.ElementEnd:
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
837position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 875position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
719case TextPointerContext.ElementEnd: 923else if (context == TextPointerContext.ElementEnd && 933if (context == TextPointerContext.ElementEnd &&
src\Framework\System\Windows\Documents\TextPointer.cs (4)
517/// <para>Returns <see cref="TextPointerContext.ElementEnd"/> if the TextPointer 1632while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3485symbolType = (node.ParentNode != null) ? TextPointerContext.ElementEnd : TextPointerContext.None; 3498symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementEnd;
src\Framework\System\Windows\Documents\TextPointerBase.cs (14)
194forwardContext == TextPointerContext.ElementEnd 201forwardContext == TextPointerContext.ElementEnd && TextSchema.IsNonFormattingInline(backwardType) && 205backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 209backwardContext == TextPointerContext.ElementEnd && 211(forwardContext != TextPointerContext.ElementEnd || !IsAtNonMergeableInlineEnd(forwardPosition)) 235if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 280position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 426position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 596if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 719thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 731thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1158oppositeEnterScope = TextPointerContext.ElementEnd; 1164directEnterScope = TextPointerContext.ElementEnd; 1496TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\TextRangeBase.cs (7)
365nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Backward) && // 369(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || // 698case TextPointerContext.ElementEnd: 781if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.ElementEnd && 1378insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1649while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1658while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (14)
76else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 272while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 282position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 335inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 536if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 559Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 1274if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1275!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1287while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1302while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1444startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1593leaveScopeSymbol = TextPointerContext.ElementEnd; 1601enterScopeSymbol = TextPointerContext.ElementEnd; 2192end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (5)
157Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 178while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 213if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 609while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 638while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
818while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
272case TextPointerContext.ElementEnd: 1487if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1545Invariant.Assert(backwardFromEnd == TextPointerContext.ElementEnd, "Expecting last closing tag of pasted fragment"); 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");
src\Framework\System\Windows\Documents\TextStore.cs (4)
347case TextPointerContext.ElementEnd: 2419Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3107case TextPointerContext.ElementEnd: 3404else if (forwardContext != TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (1)
87return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;