53 references to TextContainer
PresentationFramework (53)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
480textContainer = textBox.TextContainer;
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (5)
30_textPattern = new TextAdaptor(this, owner.TextContainer); 54_textPattern = new TextAdaptor(this, owner.TextContainer); 84return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 96return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
30_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 56_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\ComboBox.cs (1)
735EditableTextBoxSite.TextContainer.UndoManager;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1552position = snapToText ? this.TextContainer.Start : null; 1893this.TextContainer.TextView = textView;
System\Windows\Controls\RichTextBox.cs (5)
123Invariant.Assert(this.TextContainer != null); 125Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer); 228ValidationHelper.VerifyPosition(this.TextContainer, position); 247ValidationHelper.VerifyPosition(this.TextContainer, position); 273ValidationHelper.VerifyPosition(this.TextContainer, position);
System\Windows\Controls\TextBox.cs (36)
149this.TextContainer.End.InsertTextInRun(text); 161int maxStart = TextContainer.SymbolCount; 166TextPointer newStart = this.TextContainer.CreatePointerAtOffset(start, LogicalDirection.Forward); 173int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 194this.TextContainer.DeleteContentInternal((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 195TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 266ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 269TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 438ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 444TextPointer textPointer = TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Backward); 447if (trailingEdge && charIndex < this.TextContainer.SymbolCount) 482ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 484TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 487if (spellingError == null && charIndex < this.TextContainer.SymbolCount - 1) 489position = this.TextContainer.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward); 553ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 555if (this.TextContainer.SymbolCount == 0) 561ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction); 811int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 855int maxStart = TextContainer.SymbolCount; 860TextPointer newStart = TextContainer.CreatePointerAtOffset(value, LogicalDirection.Forward); 867int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 918return GetLineIndexFromCharacterIndex(this.TextContainer.SymbolCount) + 1; 1078return new RangeContentEnumerator((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 1220DeferredTextReference dtr = new DeferredTextReference(this.TextContainer); 1354return (TextPointer)this.TextContainer.Start; 1365return (TextPointer)this.TextContainer.End; 1385return this.TextContainer; 1660TextContainer.DeleteContentInternal((TextPointer)TextContainer.Start, (TextPointer)TextContainer.End); 1661TextContainer.End.InsertTextInRun(newText);
System\Windows\Data\BindingExpressionBase.cs (1)
1326tbb.TextContainer.UndoManager;