1 implementation of AnchorPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
391
ITextPointer ITextSelection.
AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
223
textSelection.SetCaretToPosition(newTextSelection.
AnchorPosition
, newTextSelection.MovingPosition.LogicalDirection, true, true);
556
newTextSelection.
AnchorPosition
!= null &&
557
newTextSelection.
AnchorPosition
.TextContainer == flowDocument.StructuralCache.TextContainer)
562
textSelection.SetCaretToPosition(newTextSelection.
AnchorPosition
, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditor.cs (1)
1212
string textAdjacent = textContainer.TextSelection.
AnchorPosition
.GetTextInRun(LogicalDirection.Backward);
System\windows\Documents\TextEditorSelection.cs (4)
1660
if (This.Selection.
AnchorPosition
.ValidateLayout())
1662
TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.
AnchorPosition
);
1663
if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.
AnchorPosition
) == 0)
1670
TextPointerBase.IsNextToParagraphBreak(This.Selection.
AnchorPosition
, LogicalDirection.Backward))
System\Windows\Documents\TextParentUndoUnit.cs (2)
35
: this(selection, selection.
AnchorPosition
, selection.MovingPosition)
172
RecordRedoSelectionState(_selection.
AnchorPosition
, _selection.MovingPosition);
System\windows\Documents\TextSelection.cs (5)
566
ITextPointer anchorPosition = thisSelection.
AnchorPosition
;
588
ITextPointer anchorPosition = ((ITextSelection)this).
AnchorPosition
;
828
ITextPointer anchorPosition = ((ITextSelection)this).
AnchorPosition
;
857
Invariant.Assert(thisSelection.Contains(thisSelection.
AnchorPosition
));
1161
return (TextPointer)((ITextSelection)this).
AnchorPosition
;
System\Windows\Documents\TextStore.cs (4)
674
ITextRange range = new TextRange(this.TextSelection.
AnchorPosition
, this.TextSelection.MovingPosition);
3537
int imeSelectionAnchorOffset = this.TextSelection.
AnchorPosition
.Offset;
3777
appSelectionAnchorOffset = this.TextSelection.
AnchorPosition
.Offset;
3804
appSelectionAnchorOffset = this.TextSelection.
AnchorPosition
.Offset;