92 references to ElementEnd
PresentationFramework (92)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1023else if (nextContext == TextPointerContext.ElementEnd)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
802if ((currentContext == TextPointerContext.ElementEnd || currentContext == TextPointerContext.ElementStart) && 835if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementStart) 842if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.LogicalDirection) == TextPointerContext.ElementEnd)
MS\Internal\Documents\TextBoxLine.cs (1)
92case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1049case TextPointerContext.ElementEnd:
MS\Internal\PtsHost\Line.cs (2)
168case TextPointerContext.ElementEnd: 617if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\LineBase.cs (1)
256Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
116else if (runType == TextPointerContext.ElementEnd)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
116case TextPointerContext.ElementEnd:
MS\Internal\Text\ComplexLine.cs (3)
57case TextPointerContext.ElementEnd: 305if (type == TextPointerContext.Text || type == TextPointerContext.ElementEnd) 477Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
System\Windows\Controls\TextRangeAdaptor.cs (3)
771if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 927if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd) 1251return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1050case TextPointerContext.ElementEnd:
System\Windows\Documents\FixedTextPointer.cs (2)
154if (!(tpc == TextPointerContext.EmbeddedElement || tpc == TextPointerContext.ElementStart || tpc == TextPointerContext.ElementEnd)) 171if (tt == TextPointerContext.ElementStart || tt == TextPointerContext.ElementEnd)
System\Windows\Documents\FixedTextView.cs (2)
1097if (symbolType == TextPointerContext.ElementStart || symbolType == TextPointerContext.ElementEnd) 1105case TextPointerContext.ElementEnd:
System\Windows\Documents\FlowPosition.cs (2)
300else if (tst == TextPointerContext.ElementEnd) 770return TextPointerContext.ElementEnd;
System\Windows\Documents\Highlights.cs (1)
201case TextPointerContext.ElementEnd:
System\Windows\Documents\ImmComposition.cs (2)
1435case TextPointerContext.ElementEnd: 1486case TextPointerContext.ElementEnd:
System\Windows\Documents\Span.cs (1)
228else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\Speller.cs (2)
1719case TextPointerContext.ElementEnd: 1814else if (context == TextPointerContext.ElementEnd &&
System\windows\Documents\TextEditorSpelling.cs (1)
274case TextPointerContext.ElementEnd:
System\windows\Documents\TextEditorTyping.cs (2)
820position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 858position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd)
System\Windows\Documents\TextFindEngine.cs (3)
708case TextPointerContext.ElementEnd: 912else if (context == TextPointerContext.ElementEnd && 922if (context == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextPointer.cs (4)
506/// <para>Returns <see cref="TextPointerContext.ElementEnd"/> if the TextPointer 1618while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3459symbolType = (node.ParentNode != null) ? TextPointerContext.ElementEnd : TextPointerContext.None; 3472symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementEnd;
System\Windows\Documents\TextPointerBase.cs (14)
192forwardContext == TextPointerContext.ElementEnd 199forwardContext == TextPointerContext.ElementEnd && TextSchema.IsNonFormattingInline(backwardType) && 203backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 207backwardContext == TextPointerContext.ElementEnd && 209(forwardContext != TextPointerContext.ElementEnd || !IsAtNonMergeableInlineEnd(forwardPosition)) 233if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 278position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd; 424position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 594if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 714thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 726thisPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1153oppositeEnterScope = TextPointerContext.ElementEnd; 1159directEnterScope = TextPointerContext.ElementEnd; 1491TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (7)
354nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Backward) && // 358(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || // 687case TextPointerContext.ElementEnd: 770if (theParagraphIsTheFirstInCollection && symbolType == TextPointerContext.ElementEnd && 1364insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 1621while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1630while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (14)
74else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 270while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 280position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 333inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 534if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 557Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 1272if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1273!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1285while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1300while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1442startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1591leaveScopeSymbol = TextPointerContext.ElementEnd; 1599enterScopeSymbol = TextPointerContext.ElementEnd; 2190end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
System\Windows\Documents\TextRangeEditLists.cs (5)
155Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 176while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 211if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 607while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 636while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEditTables.cs (1)
815while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeSerialization.cs (6)
266case TextPointerContext.ElementEnd: 1463if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1521Invariant.Assert(backwardFromEnd == TextPointerContext.ElementEnd, "Expecting last closing tag of pasted fragment"); 1530Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1531Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), 1533Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment");
System\Windows\Documents\TextStore.cs (4)
454case TextPointerContext.ElementEnd: 2564Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3198case TextPointerContext.ElementEnd: 3482else if (forwardContext != TextPointerContext.ElementEnd)
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;