140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
988if (nextContext == TextPointerContext.ElementStart)
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\HostedElements.cs (2)
100if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 174case TextPointerContext.ElementStart:
MS\Internal\Documents\TextBoxLine.cs (1)
83case TextPointerContext.ElementStart:
MS\Internal\Documents\TextContainerHelper.cs (1)
320if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1036case TextPointerContext.ElementStart:
MS\Internal\PtsHost\Line.cs (2)
146case TextPointerContext.ElementStart: 602else if (type == TextPointerContext.ElementStart)
MS\Internal\PtsHost\LineBase.cs (1)
130Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
68if (runType == TextPointerContext.ElementStart)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
96case TextPointerContext.ElementStart:
MS\Internal\PtsHost\TextParagraph.cs (3)
864while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 894if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1190if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (3)
47case TextPointerContext.ElementStart: 303else if (type == TextPointerContext.ElementStart) 380Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
609if (context == TextPointerContext.ElementStart)
System\Windows\Controls\TextRangeAdaptor.cs (3)
768if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 938if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1248return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1035case TextPointerContext.ElementStart:
System\Windows\Documents\FixedElement.cs (1)
275else if (tpc == TextPointerContext.ElementStart)
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) 1085case TextPointerContext.ElementStart:
System\Windows\Documents\FlowPosition.cs (2)
286if (tst == TextPointerContext.ElementStart) 762return TextPointerContext.ElementStart;
System\Windows\Documents\Highlights.cs (1)
198case TextPointerContext.ElementStart:
System\Windows\Documents\ImmComposition.cs (2)
1412case TextPointerContext.ElementStart: 1463case TextPointerContext.ElementStart:
System\Windows\Documents\List.cs (1)
193if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (2)
121case TextPointerContext.ElementStart: 186case TextPointerContext.ElementStart:
System\Windows\Documents\Span.cs (1)
213if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\Speller.cs (2)
1710case TextPointerContext.ElementStart: 1801if (context == TextPointerContext.ElementStart &&
System\windows\Documents\TextEditorSpelling.cs (1)
271case TextPointerContext.ElementStart:
System\windows\Documents\TextEditorTyping.cs (6)
800position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 806while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 814if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 833if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 847while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 854if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextElementEnumerator.cs (1)
130Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextFindEngine.cs (3)
697case TextPointerContext.ElementStart: 897if (context == TextPointerContext.ElementStart && 917else if (context == TextPointerContext.ElementStart &&
System\Windows\Documents\TextPointer.cs (4)
498/// <para>Returns <see cref="TextPointerContext.ElementStart"/> if the TextPointer 1612while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3498symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementStart; 3505symbolType = (node.ParentNode != null) ? TextPointerContext.ElementStart : TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
188backwardContext == TextPointerContext.ElementStart && 192backwardContext == TextPointerContext.ElementStart && TextSchema.IsNonFormattingInline(forwardType) && 200backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 208forwardContext == TextPointerContext.ElementStart && 210(backwardContext != TextPointerContext.ElementStart || !IsAtNonMergeableInlineStart(backwardPosition)) 230if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 254return (forwardContext == TextPointerContext.ElementStart && 255(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.None) && 269position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 374while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 420if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 591if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 712thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 738while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 776paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1020if (context == TextPointerContext.ElementStart || context == TextPointerContext.None) 1149directEnterScope = TextPointerContext.ElementStart; 1157oppositeEnterScope = TextPointerContext.ElementStart; 1488TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (9)
349(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || // 355nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Backward) && // 710case TextPointerContext.ElementStart : 761bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 773if (symbolType == TextPointerContext.ElementStart) 1250while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1358insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1617while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1626while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
65if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 262while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 278position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 329inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 416if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 538else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 555Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 655while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1030if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1247if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1269if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1270!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1277while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1306while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1438while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1587enterScopeSymbol = TextPointerContext.ElementStart; 1597leaveScopeSymbol = TextPointerContext.ElementStart; 2082if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2117if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2186start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2233if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (6)
75while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 143ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 151Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 185while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 209mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 646while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (4)
749bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 812while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1086cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2093movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (14)
75range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 204while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 216case TextPointerContext.ElementStart: 1413while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1418while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1474if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1513Invariant.Assert(forwardFromStart == TextPointerContext.ElementStart, "Expecting first opening tag of pasted fragment"); 1523Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1526Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment"); 1527Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), 1610if (passedContext == TextPointerContext.ElementStart) 1846Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1873Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1922while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextSchema.cs (1)
888if (forwardContext == TextPointerContext.ElementStart)
System\windows\Documents\TextSelection.cs (2)
2163caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2180caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (5)
426case TextPointerContext.ElementStart: 2546Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3178case TextPointerContext.ElementStart: 3412if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 3454if (forwardContext == TextPointerContext.ElementStart)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
55Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
51Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreeTextElementNode.cs (1)
81return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;