16 references to GetPointerContext
PresentationFramework (16)
MS\Internal\Documents\TextBoxLine.cs (1)
81switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\Line.cs (1)
158switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\LineBase.cs (4)
92Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 141Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 256Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 310Invariant.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
MS\Internal\PtsHost\OptimalTextSource.cs (1)
106switch (position.GetPointerContext(LogicalDirection.Forward))
MS\Internal\PtsHost\TextParagraph.cs (1)
1220if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
MS\Internal\Text\ComplexLine.cs (5)
47switch (position.GetPointerContext(LogicalDirection.Forward)) 339Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters."); 386Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge."); 477Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge."); 527Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
698if (highlightRangeStart.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text) 1000if (textPosition.GetPointerContext(direction) == TextPointerContext.None)
System\Windows\Documents\Highlights.cs (1)
181switch (textPosition.GetPointerContext(direction))