16 references to GetPointerContext
PresentationFramework (16)
MS\Internal\Documents\TextBoxLine.cs (1)
74switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
141switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\LineBase.cs (4)
82Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 131Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 246Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 300Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
MS\Internal\PtsHost\OptimalTextSource.cs (1)
91switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\TextParagraph.cs (1)
1191if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (5)
42switch (position.GetPointerContext(LogicalDirection.Forward)) 334Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 381Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 472Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 522Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
681if (highlightRangeStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 983if (textPosition.GetPointerContext(direction) == TextPointerContext.None)
System\Windows\Documents\Highlights.cs (1)
180switch (textPosition.GetPointerContext(direction))