27 references to TextSelectionInternal
PresentationFramework (27)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
153using (this.TextSelectionInternal.DeclareChangeBlock()) 155TextSelectionInternal.Select(_textContainer.Start, _textContainer.End); 1695if (this.TextSelectionInternal.ChangeBlockLevel > 0) 2053textBox.TextSelectionInternal.UpdateCaretState(CaretScrollMethod.None); 2054((ITextSelection)textBox.TextSelectionInternal).RefreshCaret(); 2187if (textBoxBase.TextSelectionInternal != null) 2189CaretElement caretElement = textBoxBase.TextSelectionInternal.CaretElement;
System\Windows\Controls\RichTextBox.cs (2)
364if (_document != null && this.TextSelectionInternal.ChangeBlockLevel > 0) 557return (TextSelection)TextSelectionInternal;
System\Windows\Controls\TextBox.cs (18)
179TextSelectionInternal.Select(newStart, newEnd); 187using (this.TextSelectionInternal.DeclareChangeBlock()) 190TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 769return TextSelectionInternal.Text; 773using (this.TextSelectionInternal.DeclareChangeBlock()) 775TextSelectionInternal.Text = value; 799return TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 806int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 811TextPointer newEnd = new TextPointer(TextSelectionInternal.Start, value, LogicalDirection.Forward); 817TextSelectionInternal.Select(TextSelectionInternal.Start, newEnd); 840return this.TextSelectionInternal.Start.Offset; 847int selectionLength = TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 873TextSelectionInternal.Select(newStart, newEnd); 1338return (TextSelection)TextSelectionInternal; 1652using (TextSelectionInternal.DeclareChangeBlock())