53 references to TextContainer
PresentationFramework (53)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
470textContainer = textBox.TextContainer;
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (5)
19_textPattern = new TextAdaptor(this, owner.TextContainer); 43_textPattern = new TextAdaptor(this, owner.TextContainer); 73return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 85return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
19_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 45_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\ComboBox.cs (1)
725EditableTextBoxSite.TextContainer.UndoManager;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1543position = snapToText ? this.TextContainer.Start : null; 1884this.TextContainer.TextView = textView;
System\Windows\Controls\RichTextBox.cs (5)
119Invariant.Assert(this.TextContainer != null); 121Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer); 224ValidationHelper.VerifyPosition(this.TextContainer, position); 243ValidationHelper.VerifyPosition(this.TextContainer, position); 269ValidationHelper.VerifyPosition(this.TextContainer, position);
System\Windows\Controls\TextBox.cs (36)
142this.TextContainer.End.InsertTextInRun(text); 154int maxStart = TextContainer.SymbolCount; 159TextPointer newStart = this.TextContainer.CreatePointerAtOffset(start, LogicalDirection.Forward); 166int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 187this.TextContainer.DeleteContentInternal((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 188TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 259ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 262TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 431ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 437TextPointer textPointer = TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Backward); 440if (trailingEdge && charIndex < this.TextContainer.SymbolCount) 475ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 477TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 480if (spellingError == null && charIndex < this.TextContainer.SymbolCount - 1) 482position = this.TextContainer.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward); 546ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 548if (this.TextContainer.SymbolCount == 0) 554ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction); 804int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 848int maxStart = TextContainer.SymbolCount; 853TextPointer newStart = TextContainer.CreatePointerAtOffset(value, LogicalDirection.Forward); 860int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 911return GetLineIndexFromCharacterIndex(this.TextContainer.SymbolCount) + 1; 1071return new RangeContentEnumerator((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 1213DeferredTextReference dtr = new DeferredTextReference(this.TextContainer); 1347return (TextPointer)this.TextContainer.Start; 1358return (TextPointer)this.TextContainer.End; 1378return this.TextContainer; 1653TextContainer.DeleteContentInternal((TextPointer)TextContainer.Start, (TextPointer)TextContainer.End); 1654TextContainer.End.InsertTextInRun(newText);
System\Windows\Data\BindingExpressionBase.cs (1)
1318tbb.TextContainer.UndoManager;