53 references to TextContainer
PresentationFramework (53)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
469textContainer = textBox.TextContainer;
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (5)
18_textPattern = new TextAdaptor(this, owner.TextContainer); 42_textPattern = new TextAdaptor(this, owner.TextContainer); 72return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 84return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
18_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 44_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\ComboBox.cs (1)
716EditableTextBoxSite.TextContainer.UndoManager;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1487position = snapToText ? this.TextContainer.Start : null; 1816this.TextContainer.TextView = textView;
System\Windows\Controls\RichTextBox.cs (5)
118Invariant.Assert(this.TextContainer != null); 120Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer); 223ValidationHelper.VerifyPosition(this.TextContainer, position); 242ValidationHelper.VerifyPosition(this.TextContainer, position); 268ValidationHelper.VerifyPosition(this.TextContainer, position);
System\Windows\Controls\TextBox.cs (36)
143this.TextContainer.End.InsertTextInRun(text); 155int maxStart = TextContainer.SymbolCount; 160TextPointer newStart = this.TextContainer.CreatePointerAtOffset(start, LogicalDirection.Forward); 167int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 188this.TextContainer.DeleteContentInternal((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 189TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 260ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 263TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 432ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 438TextPointer textPointer = TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Backward); 441if (trailingEdge && charIndex < this.TextContainer.SymbolCount) 476ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 478TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 481if (spellingError == null && charIndex < this.TextContainer.SymbolCount - 1) 483position = this.TextContainer.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward); 547ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 549if (this.TextContainer.SymbolCount == 0) 555ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction); 805int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 849int maxStart = TextContainer.SymbolCount; 854TextPointer newStart = TextContainer.CreatePointerAtOffset(value, LogicalDirection.Forward); 861int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 912return GetLineIndexFromCharacterIndex(this.TextContainer.SymbolCount) + 1; 1072return new RangeContentEnumerator((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 1214DeferredTextReference dtr = new DeferredTextReference(this.TextContainer); 1348return (TextPointer)this.TextContainer.Start; 1359return (TextPointer)this.TextContainer.End; 1379return this.TextContainer; 1654TextContainer.DeleteContentInternal((TextPointer)TextContainer.Start, (TextPointer)TextContainer.End); 1655TextContainer.End.InsertTextInRun(newText);
System\Windows\Data\BindingExpressionBase.cs (1)
1316MS.Internal.Documents.UndoManager undoManager = tbb?.TextContainer.UndoManager;