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)
725
EditableTextBoxSite.
TextContainer
.UndoManager;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1543
position = snapToText ? this.
TextContainer
.Start : null;
1884
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)
142
this.
TextContainer
.End.InsertTextInRun(text);
154
int maxStart =
TextContainer
.SymbolCount;
159
TextPointer newStart = this.
TextContainer
.CreatePointerAtOffset(start, LogicalDirection.Forward);
166
int maxLength = newStart.GetOffsetToPosition(
TextContainer
.End);
187
this.
TextContainer
.DeleteContentInternal((TextPointer)this.
TextContainer
.Start, (TextPointer)this.
TextContainer
.End);
188
TextSelectionInternal.Select(this.
TextContainer
.Start, this.
TextContainer
.Start);
259
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
262
TextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
431
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
437
TextPointer textPointer =
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Backward);
440
if (trailingEdge && charIndex < this.
TextContainer
.SymbolCount)
475
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
477
TextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
480
if (spellingError == null && charIndex < this.
TextContainer
.SymbolCount - 1)
482
position = this.
TextContainer
.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward);
546
ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.
TextContainer
.SymbolCount);
548
if (this.
TextContainer
.SymbolCount == 0)
554
ITextPointer position = this.
TextContainer
.CreatePointerAtOffset(charIndex, direction);
804
int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(
TextContainer
.End);
848
int maxStart =
TextContainer
.SymbolCount;
853
TextPointer newStart =
TextContainer
.CreatePointerAtOffset(value, LogicalDirection.Forward);
860
int maxLength = newStart.GetOffsetToPosition(
TextContainer
.End);
911
return GetLineIndexFromCharacterIndex(this.
TextContainer
.SymbolCount) + 1;
1071
return new RangeContentEnumerator((TextPointer)this.
TextContainer
.Start, (TextPointer)this.
TextContainer
.End);
1213
DeferredTextReference dtr = new DeferredTextReference(this.
TextContainer
);
1347
return (TextPointer)this.
TextContainer
.Start;
1358
return (TextPointer)this.
TextContainer
.End;
1378
return this.
TextContainer
;
1653
TextContainer
.DeleteContentInternal((TextPointer)
TextContainer
.Start, (TextPointer)
TextContainer
.End);
1654
TextContainer
.End.InsertTextInRun(newText);
System\Windows\Data\BindingExpressionBase.cs (1)
1318
tbb.
TextContainer
.UndoManager;