1 write to _host
PresentationFramework (1)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
48_host = host;
42 references to _host
PresentationFramework (42)
src\Framework\MS\Internal\Documents\TextBoxView.cs (42)
698double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 749ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 789nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 868else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 927ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 975ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 990ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 991ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1091if (position.TextContainer != _host.TextContainer) 1225System.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); 1250return _host; 1272return _host.TextContainer; 1309ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1310ITextPointer 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); 1419TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1423return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1560Control hostControl = (Control)_host; 1735Control hostControl = (Control)_host; 1763return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection); 1871double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1876&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1877|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 1901var selection = _host.TextContainer.TextSelection; 1936int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.TextContainer.SymbolCount); 2055ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2100ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2151ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2179ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2247if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 2902return position.TextContainer == _host.TextContainer && 3024switch (((Control)_host).VerticalContentAlignment) 3060Control host = (Control)_host;