53 references to TextContainer
PresentationFramework (53)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
494textContainer = textBox.TextContainer;
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (5)
26_textPattern = new TextAdaptor(this, owner.TextContainer); 50_textPattern = new TextAdaptor(this, owner.TextContainer); 81return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 93return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
26_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 52_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
737EditableTextBoxSite.TextContainer.UndoManager;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1578position = snapToText ? this.TextContainer.Start : null; 1924this.TextContainer.TextView = textView;
src\Framework\System\Windows\Controls\RichTextBox.cs (5)
125Invariant.Assert(this.TextContainer != null); 127Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer); 236ValidationHelper.VerifyPosition(this.TextContainer, position); 255ValidationHelper.VerifyPosition(this.TextContainer, position); 281ValidationHelper.VerifyPosition(this.TextContainer, position);
src\Framework\System\Windows\Controls\TextBox.cs (36)
155this.TextContainer.End.InsertTextInRun(text); 174int maxStart = TextContainer.SymbolCount; 179TextPointer newStart = this.TextContainer.CreatePointerAtOffset(start, LogicalDirection.Forward); 186int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 207this.TextContainer.DeleteContentInternal((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 208TextSelectionInternal.Select(this.TextContainer.Start, this.TextContainer.Start); 280if (charIndex < 0 || charIndex > this.TextContainer.SymbolCount) 286TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 460if (charIndex < 0 || charIndex > this.TextContainer.SymbolCount) 469TextPointer textPointer = TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Backward); 472if (trailingEdge && charIndex < this.TextContainer.SymbolCount) 506if (charIndex < 0 || charIndex > this.TextContainer.SymbolCount) 511TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward); 514if (spellingError == null && charIndex < this.TextContainer.SymbolCount - 1) 516position = this.TextContainer.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward); 579if (charIndex < 0 || charIndex > this.TextContainer.SymbolCount) 584if (this.TextContainer.SymbolCount == 0) 590ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction); 843int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 890int maxStart = TextContainer.SymbolCount; 895TextPointer newStart = TextContainer.CreatePointerAtOffset(value, LogicalDirection.Forward); 902int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 953return GetLineIndexFromCharacterIndex(this.TextContainer.SymbolCount) + 1; 1069return new RangeContentEnumerator((TextPointer)this.TextContainer.Start, (TextPointer)this.TextContainer.End); 1211DeferredTextReference dtr = new DeferredTextReference(this.TextContainer); 1346return (TextPointer)this.TextContainer.Start; 1357return (TextPointer)this.TextContainer.End; 1377return this.TextContainer; 1653TextContainer.DeleteContentInternal((TextPointer)TextContainer.Start, (TextPointer)TextContainer.End); 1654TextContainer.End.InsertTextInRun(newText);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1328tbb.TextContainer.UndoManager;