1 write to _host
PresentationFramework (1)
MS\Internal\Documents\TextBoxView.cs (1)
43
_host
= host;
44 references to _host
PresentationFramework (44)
MS\Internal\Documents\TextBoxView.cs (44)
649
double endOfParaGlyphWidth = ((Control)
_host
).FontSize * CaretElement.c_endOfParaMagicMultiplier;
700
ITextPointer endOfLinePosition =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
740
nextLinePosition =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward);
819
else if (position.Offset ==
_host
.TextContainer.SymbolCount && direction == LogicalDirection.Forward)
878
ITextPointer nextCaretUnitPosition =
_host
.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
926
ITextPointer backspaceUnitPosition =
_host
.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
941
ITextPointer start =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
942
ITextPointer end =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
1042
if (position.TextContainer !=
_host
.TextContainer)
1177
((Control)
_host
).Unloaded -= OnHostUnloaded;
1180
System.Diagnostics.Debug.Assert(
_host
!= null &&
_host
.TextContainer != null &&
_host
.TextContainer.Highlights != null,
1183
_host
.TextContainer.Changing -= new EventHandler(OnTextContainerChanging);
1184
_host
.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
1185
_host
.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
1205
return
_host
;
1227
return
_host
.TextContainer;
1264
ITextPointer start =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward);
1265
ITextPointer end =
_host
.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward);
1355
((Control)
_host
).Unloaded += OnHostUnloaded;
1357
_host
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
1358
_host
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
1359
_host
.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
1376
TextProperties defaultTextProperties = new TextProperties((Control)
_host
,
_host
.IsTypographyDefaultValue);
1380
return new LineProperties((Control)
_host
, (Control)
_host
, defaultTextProperties, null, this.CalculatedTextAlignment);
1516
Control hostControl = (Control)
_host
;
1694
Control hostControl = (Control)
_host
;
1722
return
_host
.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
1830
double endOfParaGlyphWidth = ((Control)
_host
).FontSize * CaretElement.c_endOfParaMagicMultiplier;
1835
&& ((bool)((Control)
_host
).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty)
1836
|| (bool)((Control)
_host
).GetValue(TextBoxBase.IsSelectionActiveProperty));
1860
var selection =
_host
.TextContainer.TextSelection;
1895
int endOffset = Math.Min(range.StartIndex + range.PositionsAdded,
_host
.TextContainer.SymbolCount);
2016
ITextPointer position =
_host
.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2061
ITextPointer endOfLinePosition =
_host
.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2112
ITextPointer position =
_host
.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2140
ITextPointer endOfLinePosition =
_host
.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2208
if ((ScrollBarVisibility)((Control)
_host
).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto)
2881
return position.TextContainer ==
_host
.TextContainer &&
3004
switch (((Control)
_host
).VerticalContentAlignment)
3040
Control host = (Control)
_host
;