140 references to ElementStart
PresentationFramework (140)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
999if (nextContext == TextPointerContext.ElementStart)
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\HostedElements.cs (2)
111if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 186case TextPointerContext.ElementStart:
MS\Internal\Documents\TextBoxLine.cs (1)
91case TextPointerContext.ElementStart:
MS\Internal\Documents\TextContainerHelper.cs (1)
324if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1060case TextPointerContext.ElementStart:
MS\Internal\PtsHost\Line.cs (2)
164case TextPointerContext.ElementStart: 621else if (type == TextPointerContext.ElementStart)
MS\Internal\PtsHost\LineBase.cs (1)
141Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
MS\Internal\PtsHost\ListParagraph.cs (1)
81if (runType == TextPointerContext.ElementStart)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
112case TextPointerContext.ElementStart:
MS\Internal\PtsHost\TextParagraph.cs (3)
888while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 918if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1220if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (3)
53case TextPointerContext.ElementStart: 309else if (type == TextPointerContext.ElementStart) 386Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
System\Windows\Controls\TextAdaptor.cs (1)
619if (context == TextPointerContext.ElementStart)
System\Windows\Controls\TextRangeAdaptor.cs (3)
771if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 941if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1251return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1045case TextPointerContext.ElementStart:
System\Windows\Documents\FixedElement.cs (1)
280else if (tpc == TextPointerContext.ElementStart)
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) 1102case TextPointerContext.ElementStart:
System\Windows\Documents\FlowPosition.cs (2)
291if (tst == TextPointerContext.ElementStart) 767return TextPointerContext.ElementStart;
System\Windows\Documents\Highlights.cs (1)
200case TextPointerContext.ElementStart:
System\Windows\Documents\ImmComposition.cs (2)
1434case TextPointerContext.ElementStart: 1485case TextPointerContext.ElementStart:
System\Windows\Documents\List.cs (1)
194if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (2)
132case TextPointerContext.ElementStart: 197case TextPointerContext.ElementStart:
System\Windows\Documents\Span.cs (1)
224if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\Speller.cs (2)
1718case TextPointerContext.ElementStart: 1809if (context == TextPointerContext.ElementStart &&
System\windows\Documents\TextEditorSpelling.cs (1)
273case TextPointerContext.ElementStart:
System\windows\Documents\TextEditorTyping.cs (6)
819position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 825while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 833if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 852if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 866while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 873if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextElementEnumerator.cs (1)
141Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextFindEngine.cs (3)
707case TextPointerContext.ElementStart: 907if (context == TextPointerContext.ElementStart && 927else if (context == TextPointerContext.ElementStart &&
System\Windows\Documents\TextPointer.cs (4)
504/// <para>Returns <see cref="TextPointerContext.ElementStart"/> if the TextPointer 1618while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3504symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementStart; 3511symbolType = (node.ParentNode != null) ? TextPointerContext.ElementStart : TextPointerContext.None;
System\Windows\Documents\TextPointerBase.cs (19)
191backwardContext == TextPointerContext.ElementStart && 195backwardContext == TextPointerContext.ElementStart && TextSchema.IsNonFormattingInline(forwardType) && 203backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 211forwardContext == TextPointerContext.ElementStart && 213(backwardContext != TextPointerContext.ElementStart || !IsAtNonMergeableInlineStart(backwardPosition)) 233if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 257return (forwardContext == TextPointerContext.ElementStart && 258(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.None) && 272position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 377while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 423if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 594if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 715thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 741while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 779paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1023if (context == TextPointerContext.ElementStart || context == TextPointerContext.None) 1152directEnterScope = TextPointerContext.ElementStart; 1160oppositeEnterScope = TextPointerContext.ElementStart; 1491TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
System\Windows\Documents\TextRangeBase.cs (9)
353(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || // 359nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Backward) && // 714case TextPointerContext.ElementStart : 765bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 777if (symbolType == TextPointerContext.ElementStart) 1254while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1362insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1621while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1630while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
System\Windows\Documents\TextRangeEdit.cs (21)
68if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 265while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 281position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 332inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 419if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 541else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 558Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 658while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1033if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1250if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1272if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1273!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1280while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1309while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1441while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1590enterScopeSymbol = TextPointerContext.ElementStart; 1600leaveScopeSymbol = TextPointerContext.ElementStart; 2085if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2120if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2189start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2236if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (6)
78while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 146ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 154Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 188while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 212mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 647while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (4)
748bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 811while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1085cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2092movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (14)
82range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 211while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 223case TextPointerContext.ElementStart: 1420while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1425while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1481if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1520Invariant.Assert(forwardFromStart == TextPointerContext.ElementStart, "Expecting first opening tag of pasted fragment"); 1530Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1533Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment"); 1534Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), 1617if (passedContext == TextPointerContext.ElementStart) 1853Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1880Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1929while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextSchema.cs (1)
895if (forwardContext == TextPointerContext.ElementStart)
System\windows\Documents\TextSelection.cs (2)
2182caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2199caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
System\Windows\Documents\TextStore.cs (5)
438case TextPointerContext.ElementStart: 2564Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3194case TextPointerContext.ElementStart: 3431if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 3473if (forwardContext == TextPointerContext.ElementStart)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
57Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
53Invariant.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;