59 references to TextSelection
PresentationFramework (59)
System\Windows\Documents\TextStore.cs (59)
331selection[0].start = this.TextSelection.Start.CharOffset; 332selection[0].end = this.TextSelection.End.CharOffset; 333selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 367this.TextSelection.SetCaretToPosition(start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 371this.TextSelection.Select(end, start); 375this.TextSelection.Select(start, end); 385this.TextSelection.OnInterimSelectionChanged(_interimSelection); 674ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 714this.TextSelection.ApplyTypingHeuristics(false /* overType */); 742if (start.CompareTo(this.TextSelection.Start) != 0 || 743end.CompareTo(this.TextSelection.End) != 0) 745this.TextSelection.Select(start, end); 756_previousCompositionStartOffset = this.TextSelection.Start.Offset; 757_previousCompositionEndOffset = this.TextSelection.End.Offset; 1428TextSelection.OnInterimSelectionChanged(_interimSelection); 1480if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty) 1485navigator = TextSelection.End.CreatePointer(); 1503TextSelection.ExtendToNextInsertionPosition(LogicalDirection.Forward); 1509string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1515this.TextEditor.SetText(TextSelection, filteredText, InputLanguageManager.Current.CurrentInputLanguage); 1516TextSelection.Select(TextSelection.End, TextSelection.End); 1767if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1768(compositionStart.CompareTo(TextSelection.End) <= 0) && 1769(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1770(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1781fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1806fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1913pointer = this.TextSelection.Start.CreatePointer(direction); 1999this.TextSelection.BeginChange(); 2007this.TextSelection.Select(range.Start, range.End); 2011this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 2029this.TextSelection.EndChange(); 3141if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3147start = this.TextSelection.Start; 3150CompositionParentUndoUnit unit = new CompositionParentUndoUnit(this.TextSelection, start, start, _nextUndoUnitIsFirstCompositionUnit); 3537int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3538int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3592TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start); 3777appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3778appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3804appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3805appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3871this.TextSelection.BeginChangeNoUndo(); 3957this.TextSelection.Select(anchor, moving); 3978this.TextSelection.Select(anchor, moving); 3988this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 4009this.TextSelection.BeginChangeNoUndo(); 4016this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */); 4038this.TextSelection.BeginChangeNoUndo(); 4045this.TextSelection.EndChange(false /* disableScroll */, true /* skipEvents */);