2 implementations of TextContainer
PresentationFramework (2)
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
830
ITextContainer ITextBoxViewHost.
TextContainer
src\Framework\System\Windows\Controls\TextBox.cs (1)
1373
ITextContainer ITextBoxViewHost.
TextContainer
31 references to TextContainer
PresentationFramework (31)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (4)
81
StaticTextPointer position = _owner.Host.
TextContainer
.CreateStaticPointerAtOffset(dcp);
121
ITextPointer position = _owner.Host.
TextContainer
.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
215
var uiScope = _owner?.Host?.
TextContainer
?.TextSelection?.TextEditor?.UiScope;
433
StaticTextPointer endOfRunPosition = _owner.Host.
TextContainer
.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
src\Framework\MS\Internal\Documents\TextBoxView.cs (27)
749
ITextPointer endOfLinePosition = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
789
nextLinePosition = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward);
868
else if (position.Offset == _host.
TextContainer
.SymbolCount && direction == LogicalDirection.Forward)
927
ITextPointer nextCaretUnitPosition = _host.
TextContainer
.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
975
ITextPointer backspaceUnitPosition = _host.
TextContainer
.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
990
ITextPointer start = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
991
ITextPointer end = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
1091
if (position.TextContainer != _host.
TextContainer
)
1225
System.Diagnostics.Debug.Assert(_host != null && _host.
TextContainer
!= null && _host.
TextContainer
.Highlights != null,
1228
_host.
TextContainer
.Changing -= new EventHandler(OnTextContainerChanging);
1229
_host.
TextContainer
.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
1230
_host.
TextContainer
.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
1272
return _host.
TextContainer
;
1309
ITextPointer start = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward);
1310
ITextPointer end = _host.
TextContainer
.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count-1].EndOffset, LogicalDirection.Forward);
1400
_host.
TextContainer
.Changing += new EventHandler(OnTextContainerChanging);
1401
_host.
TextContainer
.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
1402
_host.
TextContainer
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
1763
return _host.
TextContainer
.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
1901
var selection = _host.
TextContainer
.TextSelection;
1936
int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.
TextContainer
.SymbolCount);
2055
ITextPointer position = _host.
TextContainer
.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2100
ITextPointer endOfLinePosition = _host.
TextContainer
.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2151
ITextPointer position = _host.
TextContainer
.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2179
ITextPointer endOfLinePosition = _host.
TextContainer
.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2902
return position.TextContainer == _host.
TextContainer
&&