59 references to TextSelection
PresentationFramework (59)
src\Framework\System\Windows\Documents\TextStore.cs (59)
249selection[0].start = this.TextSelection.Start.CharOffset; 250selection[0].end = this.TextSelection.End.CharOffset; 251selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 271this.TextSelection.SetCaretToPosition(start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 275this.TextSelection.Select(end, start); 279this.TextSelection.Select(start, end); 289this.TextSelection.OnInterimSelectionChanged(_interimSelection); 553ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 593this.TextSelection.ApplyTypingHeuristics(false /* overType */); 621if (start.CompareTo(this.TextSelection.Start) != 0 || 622end.CompareTo(this.TextSelection.End) != 0) 624this.TextSelection.Select(start, end); 635_previousCompositionStartOffset = this.TextSelection.Start.Offset; 636_previousCompositionEndOffset = this.TextSelection.End.Offset; 1299TextSelection.OnInterimSelectionChanged(_interimSelection); 1356if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty) 1361navigator = TextSelection.End.CreatePointer(); 1379TextSelection.ExtendToNextInsertionPosition(LogicalDirection.Forward); 1385string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1391this.TextEditor.SetText(TextSelection, filteredText, InputLanguageManager.Current.CurrentInputLanguage); 1392TextSelection.Select(TextSelection.End, TextSelection.End); 1649if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1650(compositionStart.CompareTo(TextSelection.End) <= 0) && 1651(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1652(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1663fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1692fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1808pointer = this.TextSelection.Start.CreatePointer(direction); 1888this.TextSelection.BeginChange(); 1896this.TextSelection.Select(range.Start, range.End); 1900this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 1913this.TextSelection.EndChange(); 3061if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3067start = this.TextSelection.Start; 3070CompositionParentUndoUnit unit = new CompositionParentUndoUnit(this.TextSelection, start, start, _nextUndoUnitIsFirstCompositionUnit); 3458int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3459int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3505TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start); 3649appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3650appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3676appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3677appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3733this.TextSelection.BeginChangeNoUndo(); 3811this.TextSelection.Select(anchor, moving); 3832this.TextSelection.Select(anchor, moving); 3841this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 3852this.TextSelection.BeginChangeNoUndo(); 3859this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 3871this.TextSelection.BeginChangeNoUndo(); 3878this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */);