1 write to _host
PresentationFramework (1)
MS\Internal\Documents\TextBoxView.cs (1)
44_host = host;
44 references to _host
PresentationFramework (44)
MS\Internal\Documents\TextBoxView.cs (44)
650double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 701ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 741nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 820else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 879ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 927ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 942ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 943ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1043if (position.TextContainer != _host.TextContainer) 1178((Control)_host).Unloaded -= OnHostUnloaded; 1181System.Diagnostics.Debug.Assert(_host != null && _host.TextContainer != null && _host.TextContainer.Highlights != null, 1184_host.TextContainer.Changing -= new EventHandler(OnTextContainerChanging); 1185_host.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 1186_host.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1206return _host; 1228return _host.TextContainer; 1265ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1266ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward); 1356((Control)_host).Unloaded += OnHostUnloaded; 1358_host.TextContainer.Changing += new EventHandler(OnTextContainerChanging); 1359_host.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 1360_host.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged); 1377TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1381return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1517Control hostControl = (Control)_host; 1695Control hostControl = (Control)_host; 1723return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection); 1831double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1836&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1837|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 1861var selection = _host.TextContainer.TextSelection; 1896int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.TextContainer.SymbolCount); 2017ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2062ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2113ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2141ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2209if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 2882return position.TextContainer == _host.TextContainer && 3005switch (((Control)_host).VerticalContentAlignment) 3041Control host = (Control)_host;