53 references to TextContainer
PresentationFramework (53)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
470
textContainer = textBox.
TextContainer
;
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (5)
19
_textPattern = new TextAdaptor(this, owner.
TextContainer
);
43
_textPattern = new TextAdaptor(this, owner.
TextContainer
);
73
return TextContainerHelper.GetAutomationPeersFromRange(owner.
TextContainer
.Start, owner.
TextContainer
.End, null);
85
return 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)
717
EditableTextBoxSite.
TextContainer
.UndoManager;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1488
position = snapToText ? this.
TextContainer
.Start : null;
1817
this.
TextContainer
.TextView = textView;
System\Windows\Controls\RichTextBox.cs (5)
119
Invariant.Assert(this.
TextContainer
!= null);
121
Invariant.Assert(this.TextEditor.TextContainer == this.
TextContainer
);
224
ValidationHelper.VerifyPosition(this.
TextContainer
, position);
243
ValidationHelper.VerifyPosition(this.
TextContainer
, position);
269
ValidationHelper.VerifyPosition(this.
TextContainer
, position);
System\Windows\Controls\TextBox.cs (36)
144
this.
TextContainer
.End.InsertTextInRun(text);
156
int maxStart =
TextContainer
.SymbolCount;
161
TextPointer newStart = this.
TextContainer
.CreatePointerAtOffset(start, LogicalDirection.Forward);
168
int maxLength = newStart.GetOffsetToPosition(
TextContainer
.End);
189
this.
TextContainer
.DeleteContentInternal((TextPointer)this.
TextContainer
.Start, (TextPointer)this.
TextContainer
.End);
190
TextSelectionInternal.Select(this.
TextContainer
.Start, this.
TextContainer
.Start);
261
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
264
TextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
433
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
439
TextPointer textPointer =
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Backward);
442
if (trailingEdge && charIndex < this.
TextContainer
.SymbolCount)
477
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
479
TextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
482
if (spellingError == null && charIndex < this.
TextContainer
.SymbolCount - 1)
484
position = this.
TextContainer
.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward);
548
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
550
if (this.
TextContainer
.SymbolCount == 0)
556
ITextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, direction);
806
int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(
TextContainer
.End);
850
int maxStart =
TextContainer
.SymbolCount;
855
TextPointer newStart =
TextContainer
.CreatePointerAtOffset(value, LogicalDirection.Forward);
862
int maxLength = newStart.GetOffsetToPosition(
TextContainer
.End);
913
return GetLineIndexFromCharacterIndex(this.
TextContainer
.SymbolCount) + 1;
1073
return new RangeContentEnumerator((TextPointer)this.
TextContainer
.Start, (TextPointer)this.
TextContainer
.End);
1215
DeferredTextReference dtr = new DeferredTextReference(this.
TextContainer
);
1349
return (TextPointer)this.
TextContainer
.Start;
1360
return (TextPointer)this.
TextContainer
.End;
1380
return this.
TextContainer
;
1655
TextContainer
.DeleteContentInternal((TextPointer)
TextContainer
.Start, (TextPointer)
TextContainer
.End);
1656
TextContainer
.End.InsertTextInRun(newText);
System\Windows\Data\BindingExpressionBase.cs (1)
1317
MS.Internal.Documents.UndoManager undoManager = tbb?.
TextContainer
.UndoManager;