1 implementation of AnchorPosition
PresentationFramework (1)
src\Framework\System\windows\Documents\TextSelection.cs (1)
397ITextPointer ITextSelection.AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (4)
227textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true); 560newTextSelection.AnchorPosition != null && 561newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 566textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1245string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);
src\Framework\System\windows\Documents\TextEditorSelection.cs (4)
1684if (This.Selection.AnchorPosition.ValidateLayout()) 1686TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 1687if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 1694TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward))
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (2)
51: this(selection, selection.AnchorPosition, selection.MovingPosition) 188RecordRedoSelectionState(_selection.AnchorPosition, _selection.MovingPosition);
src\Framework\System\windows\Documents\TextSelection.cs (5)
572ITextPointer anchorPosition = thisSelection.AnchorPosition; 594ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 834ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 863Invariant.Assert(thisSelection.Contains(thisSelection.AnchorPosition)); 1167return (TextPointer)((ITextSelection)this).AnchorPosition;
src\Framework\System\Windows\Documents\TextStore.cs (4)
553ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 3458int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3649appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3676appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset;