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