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