140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
992if (nextContext == TextPointerContext.ElementStart)
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\HostedElements.cs (2)
107if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 182case TextPointerContext.ElementStart:
MS\Internal\Documents\TextBoxLine.cs (1)
84case TextPointerContext.ElementStart:
MS\Internal\Documents\TextContainerHelper.cs (1)
321if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1055case TextPointerContext.ElementStart:
MS\Internal\PtsHost\Line.cs (2)
158case TextPointerContext.ElementStart: 615else if (type == TextPointerContext.ElementStart)
MS\Internal\PtsHost\LineBase.cs (1)
135Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
78if (runType == TextPointerContext.ElementStart)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
105case TextPointerContext.ElementStart:
MS\Internal\PtsHost\TextParagraph.cs (3)
881while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 911if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1213if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (3)
48case TextPointerContext.ElementStart: 304else if (type == TextPointerContext.ElementStart) 381Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
616if (context == TextPointerContext.ElementStart)
System\Windows\Controls\TextRangeAdaptor.cs (3)
769if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 939if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1249return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1039case TextPointerContext.ElementStart:
System\Windows\Documents\FixedElement.cs (1)
272else if (tpc == TextPointerContext.ElementStart)
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) 1094case TextPointerContext.ElementStart:
System\Windows\Documents\FlowPosition.cs (2)
287if (tst == TextPointerContext.ElementStart) 763return TextPointerContext.ElementStart;
System\Windows\Documents\Highlights.cs (1)
199case TextPointerContext.ElementStart:
System\Windows\Documents\ImmComposition.cs (2)
1426case TextPointerContext.ElementStart: 1477case TextPointerContext.ElementStart:
System\Windows\Documents\List.cs (1)
194if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (2)
128case TextPointerContext.ElementStart: 193case TextPointerContext.ElementStart:
System\Windows\Documents\Span.cs (1)
223if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\Speller.cs (2)
1714case TextPointerContext.ElementStart: 1805if (context == TextPointerContext.ElementStart &&
System\windows\Documents\TextEditorSpelling.cs (1)
272case TextPointerContext.ElementStart:
System\windows\Documents\TextEditorTyping.cs (6)
810position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 816while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 824if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 843if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 857while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 864if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextElementEnumerator.cs (1)
135Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextFindEngine.cs (3)
699case TextPointerContext.ElementStart: 899if (context == TextPointerContext.ElementStart && 919else if (context == TextPointerContext.ElementStart &&
System\Windows\Documents\TextPointer.cs (4)
499/// <para>Returns <see cref="TextPointerContext.ElementStart"/> if the TextPointer 1613while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3499symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementStart; 3506symbolType = (node.ParentNode != null) ? TextPointerContext.ElementStart : TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
189backwardContext == TextPointerContext.ElementStart && 193backwardContext == TextPointerContext.ElementStart && TextSchema.IsNonFormattingInline(forwardType) && 201backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 209forwardContext == TextPointerContext.ElementStart && 211(backwardContext != TextPointerContext.ElementStart || !IsAtNonMergeableInlineStart(backwardPosition)) 231if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 255return (forwardContext == TextPointerContext.ElementStart && 256(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.None) && 270position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 375while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 421if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 592if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 713thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 739while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 777paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1021if (context == TextPointerContext.ElementStart || context == TextPointerContext.None) 1150directEnterScope = TextPointerContext.ElementStart; 1158oppositeEnterScope = TextPointerContext.ElementStart; 1489TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (9)
350(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || // 356nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Backward) && // 711case TextPointerContext.ElementStart : 762bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 774if (symbolType == TextPointerContext.ElementStart) 1251while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1359insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1618while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1627while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
66if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 263while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 279position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 330inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 417if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 539else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 556Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 656while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1031if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1248if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1270if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1271!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1278while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1307while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1439while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1588enterScopeSymbol = TextPointerContext.ElementStart; 1598leaveScopeSymbol = TextPointerContext.ElementStart; 2083if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2118if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2187start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2234if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (6)
76while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 144ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 152Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 186while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 210mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 645while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (4)
746bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 809while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1083cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2090movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (14)
76range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 205while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 217case TextPointerContext.ElementStart: 1414while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1419while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1475if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1514Invariant.Assert(forwardFromStart == TextPointerContext.ElementStart, "Expecting first opening tag of pasted fragment"); 1524Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1527Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment"); 1528Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), 1611if (passedContext == TextPointerContext.ElementStart) 1847Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1874Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1923while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextSchema.cs (1)
894if (forwardContext == TextPointerContext.ElementStart)
System\windows\Documents\TextSelection.cs (2)
2179caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2196caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (5)
427case TextPointerContext.ElementStart: 2553Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3183case TextPointerContext.ElementStart: 3420if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 3462if (forwardContext == TextPointerContext.ElementStart)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
56Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
52Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreeTextElementNode.cs (1)
80return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;