86 references to GetPointerContext
PresentationFramework (86)
MS\Internal\Documents\HostedElements.cs (3)
107if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 108_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 180switch (_currentPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
955switch (searchPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
607type = position.GetPointerContext((charIndex.TrailingLength == 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\Text\ComplexLine.cs (2)
290type = position.GetPointerContext(LogicalDirection.Forward); 295type = position.GetPointerContext(LogicalDirection.Backward);
System\Windows\Controls\AccessText.cs (2)
577TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 623TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3659switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\FixedTextPointer.cs (1)
93/// <see cref="TextPointer.GetPointerContext"/>
System\Windows\Documents\List.cs (1)
194if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (4)
100switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 114while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 176switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 185while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0);
System\Windows\Documents\Span.cs (2)
223if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 227else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextEffectResolver.cs (2)
101while (navigator.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text 111while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text
System\Windows\Documents\TextElementEnumerator.cs (1)
135Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextPointer.cs (4)
46/// get from a TextPointer using method <see cref="TextPointer.GetPointerContext"/>.</para> 1610TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1617backwardContext = position.GetPointerContext(LogicalDirection.Backward); 2385return GetPointerContext(direction);
System\Windows\Documents\TextPointerBase.cs (1)
777paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEdit.cs (30)
66if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 72else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 263while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 268while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 278position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 279position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 330inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 331inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 417if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 532if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 539else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 555Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 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) 1267TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1268TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1278while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1283while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1298while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1307while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1439while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1440startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1617TextPointerContext pointerContext = nextPosition.GetPointerContext(direction); 1653Invariant.Assert(nextPosition.GetPointerContext(direction) == leaveScopeSymbol, "Unexpected context of nextPosition"); 2083if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2118if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2187start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2188end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 2234if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (11)
76while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 144ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 152Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 153Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 174while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 186while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 209if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 210mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 605while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 634while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 645while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (5)
746bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 809while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 813while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1083cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2090movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (10)
1414while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1419while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1457if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1475if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1512TextPointerContext forwardFromStart = start.GetPointerContext(LogicalDirection.Forward); 1513TextPointerContext backwardFromEnd = end.GetPointerContext(LogicalDirection.Backward); 1522TextPointerContext backwardFromStart = start.GetPointerContext(LogicalDirection.Backward); 1523TextPointerContext forwardFromEnd = end.GetPointerContext(LogicalDirection.Forward); 1550((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None; 1610TextPointerContext passedContext = start.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextSchema.cs (1)
893TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
3420if (start.GetPointerContext(LogicalDirection.Backward) == 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.");