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)
643double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 694ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 734nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 813else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 872ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 920ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 935ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 936ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1036if (position.TextContainer != _host.TextContainer) 1171((Control)_host).Unloaded -= OnHostUnloaded; 1174System.Diagnostics.Debug.Assert(_host != null && _host.TextContainer != null && _host.TextContainer.Highlights != null, 1177_host.TextContainer.Changing -= new EventHandler(OnTextContainerChanging); 1178_host.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 1179_host.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1199return _host; 1221return _host.TextContainer; 1258ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1259ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward); 1349((Control)_host).Unloaded += OnHostUnloaded; 1351_host.TextContainer.Changing += new EventHandler(OnTextContainerChanging); 1352_host.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 1353_host.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged); 1370TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1374return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1510Control hostControl = (Control)_host; 1688Control hostControl = (Control)_host; 1716return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection); 1824double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1829&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1830|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 1854var selection = _host.TextContainer.TextSelection; 1889int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.TextContainer.SymbolCount); 2010ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2055ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2106ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2134ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2202if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 2863return position.TextContainer == _host.TextContainer && 2986switch (((Control)_host).VerticalContentAlignment) 3022Control host = (Control)_host;