59 references to TextSelection
PresentationFramework (59)
System\Windows\Documents\TextStore.cs (59)
330selection[0].start = this.TextSelection.Start.CharOffset; 331selection[0].end = this.TextSelection.End.CharOffset; 332selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 366this.TextSelection.SetCaretToPosition(start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 370this.TextSelection.Select(end, start); 374this.TextSelection.Select(start, end); 384this.TextSelection.OnInterimSelectionChanged(_interimSelection); 673ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 713this.TextSelection.ApplyTypingHeuristics(false /* overType */); 741if (start.CompareTo(this.TextSelection.Start) != 0 || 742end.CompareTo(this.TextSelection.End) != 0) 744this.TextSelection.Select(start, end); 755_previousCompositionStartOffset = this.TextSelection.Start.Offset; 756_previousCompositionEndOffset = this.TextSelection.End.Offset; 1421TextSelection.OnInterimSelectionChanged(_interimSelection); 1473if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty) 1478navigator = TextSelection.End.CreatePointer(); 1496TextSelection.ExtendToNextInsertionPosition(LogicalDirection.Forward); 1502string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1508this.TextEditor.SetText(TextSelection, filteredText, InputLanguageManager.Current.CurrentInputLanguage); 1509TextSelection.Select(TextSelection.End, TextSelection.End); 1757if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1758(compositionStart.CompareTo(TextSelection.End) <= 0) && 1759(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1760(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1771fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1796fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1903pointer = this.TextSelection.Start.CreatePointer(direction); 1986this.TextSelection.BeginChange(); 1994this.TextSelection.Select(range.Start, range.End); 1998this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 2016this.TextSelection.EndChange(); 3127if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3133start = this.TextSelection.Start; 3136CompositionParentUndoUnit unit = new CompositionParentUndoUnit(this.TextSelection, start, start, _nextUndoUnitIsFirstCompositionUnit); 3520int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3521int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3575TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start); 3760appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3761appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3787appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3788appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3854this.TextSelection.BeginChangeNoUndo(); 3940this.TextSelection.Select(anchor, moving); 3961this.TextSelection.Select(anchor, moving); 3971this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 3992this.TextSelection.BeginChangeNoUndo(); 3999this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 4021this.TextSelection.BeginChangeNoUndo(); 4028this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */);