140 references to ElementStart
PresentationFramework (140)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1016if (nextContext == TextPointerContext.ElementStart)
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\HostedElements.cs (2)
119if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 194case TextPointerContext.ElementStart:
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
93case TextPointerContext.ElementStart:
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
329if (start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1086case TextPointerContext.ElementStart:
src\Framework\MS\Internal\PtsHost\Line.cs (2)
167case TextPointerContext.ElementStart: 624else if (type == TextPointerContext.ElementStart)
src\Framework\MS\Internal\PtsHost\LineBase.cs (1)
145Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
85if (runType == TextPointerContext.ElementStart)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
116case TextPointerContext.ElementStart:
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (3)
895while(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 925if(textPointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1228if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\MS\Internal\Text\ComplexLine.cs (3)
56case TextPointerContext.ElementStart: 313else if (type == TextPointerContext.ElementStart) 391Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
603if (context == TextPointerContext.ElementStart)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
779if (context != TextPointerContext.ElementStart && context != TextPointerContext.ElementEnd) 949if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 1260return ((symbolType == TextPointerContext.ElementStart) || (symbolType == TextPointerContext.ElementEnd));
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1062case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\FixedElement.cs (1)
285else if (tpc == TextPointerContext.ElementStart)
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) 1114case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\FlowPosition.cs (2)
298if (tst == TextPointerContext.ElementStart) 774return TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\Highlights.cs (1)
206case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1581case TextPointerContext.ElementStart: 1632case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\List.cs (1)
204if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (2)
140case TextPointerContext.ElementStart: 205case TextPointerContext.ElementStart:
src\Framework\System\Windows\Documents\Span.cs (1)
230if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\Speller.cs (2)
1846case TextPointerContext.ElementStart: 1937if (context == TextPointerContext.ElementStart &&
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
275case TextPointerContext.ElementStart:
src\Framework\System\windows\Documents\TextEditorTyping.cs (6)
836position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 842while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 850if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 869if (position.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart) 883while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 890if (!(navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (1)
147Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
718case TextPointerContext.ElementStart: 918if (context == TextPointerContext.ElementStart && 938else if (context == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextPointer.cs (4)
515/// <para>Returns <see cref="TextPointerContext.ElementStart"/> if the TextPointer 1632while ((backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 3530symbolType = (node.GetContainingNode() is TextTreeRootNode) ? TextPointerContext.None : TextPointerContext.ElementStart; 3537symbolType = (node.ParentNode != null) ? TextPointerContext.ElementStart : TextPointerContext.None;
src\Framework\System\Windows\Documents\TextPointerBase.cs (19)
193backwardContext == TextPointerContext.ElementStart && 197backwardContext == TextPointerContext.ElementStart && TextSchema.IsNonFormattingInline(forwardType) && 205backwardContext == TextPointerContext.ElementEnd && forwardContext == TextPointerContext.ElementStart && 213forwardContext == TextPointerContext.ElementStart && 215(backwardContext != TextPointerContext.ElementStart || !IsAtNonMergeableInlineStart(backwardPosition)) 235if (backwardContext == TextPointerContext.ElementStart && forwardContext == TextPointerContext.ElementEnd) 259return (forwardContext == TextPointerContext.ElementStart && 260(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.None) && 274position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 379while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 425if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 596if (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 720thisPosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 746while (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 784paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1028if (context == TextPointerContext.ElementStart || context == TextPointerContext.None) 1157directEnterScope = TextPointerContext.ElementStart; 1165oppositeEnterScope = TextPointerContext.ElementStart; 1496TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\TextRangeBase.cs (9)
364(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || // 370nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Backward) && // 725case TextPointerContext.ElementStart : 776bool theParagraphIsTheFirstInCollection = navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 788if (symbolType == TextPointerContext.ElementStart) 1265while (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1376insertPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) && 1649while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd) 1658while (context == TextPointerContext.ElementStart || context == TextPointerContext.ElementEnd)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (21)
70if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 267while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 283position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 334inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 421if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 543else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 560Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "position must be before ElementStart"); 660while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1035if (pointer.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1252if (rangeStart.CompareTo(rangeEnd) < 0 && rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 1274if (!(backwardContext == TextPointerContext.ElementStart || backwardContext == TextPointerContext.ElementEnd) && 1275!(forwardContext == TextPointerContext.ElementStart || forwardContext == TextPointerContext.ElementEnd)) 1282while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1311while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1443while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1592enterScopeSymbol = TextPointerContext.ElementStart; 1602leaveScopeSymbol = TextPointerContext.ElementStart; 2087if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2122if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2191start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2238if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (6)
80while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 148ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 156Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 190while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 214mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 649while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
751bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 814while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1088cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2095movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (14)
84range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 217while (rangeEnd.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 229case TextPointerContext.ElementStart: 1444while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1449while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1505if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1544Invariant.Assert(forwardFromStart == TextPointerContext.ElementStart, "Expecting first opening tag of pasted fragment"); 1552Invariant.Assert(backwardFromStart == TextPointerContext.ElementStart || backwardFromStart == TextPointerContext.ElementEnd || backwardFromStart == TextPointerContext.None, "Bad context preceding a pasted fragment"); 1554Invariant.Assert(forwardFromEnd == TextPointerContext.ElementStart || forwardFromEnd == TextPointerContext.ElementEnd || forwardFromEnd == TextPointerContext.None, "Bad context following a pasted fragment"); 1555Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name); 1637if (passedContext == TextPointerContext.ElementStart) 1873Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1900Invariant.Assert(textReader.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 1949while (hyperlinkStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
src\Framework\System\Windows\Documents\TextSchema.cs (1)
897if (forwardContext == TextPointerContext.ElementStart)
src\Framework\System\windows\Documents\TextSelection.cs (2)
2190caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) || // 2207caretPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && //
src\Framework\System\Windows\Documents\TextStore.cs (5)
331case TextPointerContext.ElementStart: 2419Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd); 3103case TextPointerContext.ElementStart: 3353if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 3395if (forwardContext == TextPointerContext.ElementStart)
src\Framework\System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
60Invariant.Assert(start.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
59Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart, "TextTree undo unit out of sync with TextTree.");
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (1)
87return (direction == LogicalDirection.Forward) ? TextPointerContext.ElementStart : TextPointerContext.ElementEnd;