86 references to GetPointerContext
PresentationFramework (86)
MS\Internal\Documents\HostedElements.cs (3)
111if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 112_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 184switch (_currentPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
963switch (searchPosition.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
613type = position.GetPointerContext((charIndex.TrailingLength == 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\Text\ComplexLine.cs (2)
295type = position.GetPointerContext(LogicalDirection.Forward); 300type = position.GetPointerContext(LogicalDirection.Backward);
System\Windows\Controls\AccessText.cs (2)
579TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward); 625TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3669switch (position.GetPointerContext(LogicalDirection.Forward))
System\Windows\Documents\FixedTextPointer.cs (1)
98/// <see cref="TextPointer.GetPointerContext"/>
System\Windows\Documents\List.cs (1)
194if (textNav.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\RangeContentEnumerator.cs (4)
104switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 118while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text); 180switch (_navigator.GetPointerContext(LogicalDirection.Forward)) 189while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.CompareTo(_end) < 0);
System\Windows\Documents\Span.cs (2)
224if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 228else if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
System\Windows\Documents\TextEffectResolver.cs (2)
105while (navigator.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text 115while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text
System\Windows\Documents\TextElementEnumerator.cs (1)
141Invariant.Assert(_navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart,
System\Windows\Documents\TextPointer.cs (4)
51/// get from a TextPointer using method <see cref="TextPointer.GetPointerContext"/>.</para> 1615TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1622backwardContext = position.GetPointerContext(LogicalDirection.Backward); 2390return GetPointerContext(direction);
System\Windows\Documents\TextPointerBase.cs (1)
782paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEdit.cs (30)
68if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 74else if (!keepEmptyFormatting && splitPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 265while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 270while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 280position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 281position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 332inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 333inline.ElementEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 419if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 534if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 541else if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 557Invariant.Assert(position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd, "position must be after ElementEnd"); 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) 1269TextPointerContext backwardContext = position.GetPointerContext(LogicalDirection.Backward); 1270TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward); 1280while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1285while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 1300while (previousPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd && 1309while (nextPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 1441while (startPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1442startPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 1619TextPointerContext pointerContext = nextPosition.GetPointerContext(direction); 1655Invariant.Assert(nextPosition.GetPointerContext(direction) == leaveScopeSymbol, "Unexpected context of nextPosition"); 2085if (pointer.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart && 2120if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2189start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 2190end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd && 2236if (start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeEditLists.cs (11)
78while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 146ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 154Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart); 155Invariant.Assert(positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd); 176while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 188while (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 211if (mergePosition.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementEnd || 212mergePosition.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementStart) 607while (end.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 636while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd) 647while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRangeEditTables.cs (5)
748bool insertBefore = position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart; 811while (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 815while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1085cellEnd.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 2092movingPosition.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&
System\Windows\Documents\TextRangeSerialization.cs (10)
1420while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1425while (positionBeforeParagraph.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 1463if (navigator.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementEnd) 1481if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 1518TextPointerContext forwardFromStart = start.GetPointerContext(LogicalDirection.Forward); 1519TextPointerContext backwardFromEnd = end.GetPointerContext(LogicalDirection.Backward); 1528TextPointerContext backwardFromStart = start.GetPointerContext(LogicalDirection.Backward); 1529TextPointerContext forwardFromEnd = end.GetPointerContext(LogicalDirection.Forward); 1556((Section)fragment).HasTrailingParagraphBreakOnPaste = range.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.None; 1616TextPointerContext passedContext = start.GetPointerContext(LogicalDirection.Backward);
System\Windows\Documents\TextSchema.cs (1)
894TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
3440if (start.GetPointerContext(LogicalDirection.Backward) == 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.");