27 references to TextSelectionInternal
PresentationFramework (27)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (7)
183using (this.TextSelectionInternal.DeclareChangeBlock()) 185TextSelectionInternal.Select(_textContainer.Start, _textContainer.End); 1731if (this.TextSelectionInternal.ChangeBlockLevel > 0) 2094textBox.TextSelectionInternal.UpdateCaretState(CaretScrollMethod.None); 2095((ITextSelection)textBox.TextSelectionInternal).RefreshCaret(); 2233if (textBoxBase.TextSelectionInternal != null) 2235CaretElement caretElement = textBoxBase.TextSelectionInternal.CaretElement;
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
377if (_document != null && this.TextSelectionInternal.ChangeBlockLevel > 0) 570return (TextSelection)TextSelectionInternal;
src\Framework\System\Windows\Controls\TextBox.cs (18)
197TextSelectionInternal.Select(newStart, newEnd); 205using (this.TextSelectionInternal.DeclareChangeBlock()) 208TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 803return TextSelectionInternal.Text; 807using (this.TextSelectionInternal.DeclareChangeBlock()) 809TextSelectionInternal.Text = value; 833return TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 843int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 848TextPointer newEnd = new TextPointer(TextSelectionInternal.Start, value, LogicalDirection.Forward); 854TextSelectionInternal.Select(TextSelectionInternal.Start, newEnd); 877return this.TextSelectionInternal.Start.Offset; 887int selectionLength = TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 913TextSelectionInternal.Select(newStart, newEnd); 1335return (TextSelection)TextSelectionInternal; 1650using (TextSelectionInternal.DeclareChangeBlock())