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