1 write to _hScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
65_hScrollBar = new()
81 references to _hScrollBar
System.Windows.Forms (81)
System\Windows\Forms\Printing\PrintPreviewControl.cs (34)
76_hScrollBar.ValueChanged += scrollBar_ValueChanged; 77Controls.Add(_hScrollBar); 443if (_hScrollBar.Visible) 445rect.Height -= _hScrollBar.Height; 464private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height); 619_position.X = _hScrollBar.Value; 707if (!_hScrollBar.Visible || !_vScrollBar.Visible) 764_hScrollBar.Value = Math.Clamp(value.X, _hScrollBar.Minimum, _hScrollBar.Maximum); 796bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded); 798_hScrollBar.Visible = horizontalScrollNeeded; 801_hScrollBar.Top = availableRect.Bottom - _hScrollBar.Height; 802_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0); 805_hScrollBar, 810else if (_hScrollBar.Value > 0) 812_hScrollBar.Value = 0; 818_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0); 835offset: (horizontalScrollNeeded ? _hScrollBar.Height : 0)); 855bool vertical = _virtualSize.Height > displaySize.Height && displaySize.Height > _hScrollBar.Height; 864vertical = _virtualSize.Height > (displaySize.Height - _hScrollBar.Height); 908bool scrollVisible = _vScrollBar.Visible || _hScrollBar.Visible; 910int largeChange = vertical ? _vScrollBar.LargeChange : _hScrollBar.LargeChange; 953maxPos = vertical ? _vScrollBar.Maximum : _hScrollBar.Maximum; 1035if (_hScrollBar.Visible) 1038if (pos > _hScrollBar.SmallChange) 1040pos -= _hScrollBar.SmallChange; 1053if (_hScrollBar.Visible) 1056maxPos = _hScrollBar.Maximum - _hScrollBar.SmallChange; 1058if (pos < maxPos - _hScrollBar.SmallChange) 1060pos += _hScrollBar.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (43)
36? owner._hScrollBar.Visible ? 2 : 1 37: owner._hScrollBar.Visible ? 1 : 0; 50: owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 521 => owner._vScrollBar.Visible && owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 64&& (owner._vScrollBar.Visible || owner._hScrollBar.Visible), 82: owner._hScrollBar.Visible 83? owner._hScrollBar.AccessibilityObject 86=> owner._hScrollBar.Visible 87? owner._hScrollBar.AccessibilityObject 103if (owner._hScrollBar.Visible && horizontalAmount != ScrollAmount.ScrollAmount_NoAmount) 108scrollValue = owner._hScrollBar.Value + owner._hScrollBar.LargeChange; 109owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 112scrollValue = owner._hScrollBar.Value + owner._hScrollBar.SmallChange; 113owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 116scrollValue = owner._hScrollBar.Value - owner._hScrollBar.LargeChange; 117owner._hScrollBar.Value = (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : scrollValue); 120scrollValue = owner._hScrollBar.Value - owner._hScrollBar.SmallChange; 121owner._hScrollBar.Value = (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : scrollValue); 160if (owner._hScrollBar.Visible && horizontalPercent >= 0 && horizontalPercent <= 100) 162scrollValue = owner._hScrollBar.Minimum + (int)((owner._hScrollBar.Maximum - owner._hScrollBar.Minimum) * horizontalPercent); 163owner._hScrollBar.Value = scrollValue; 179if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._hScrollBar.Visible) 181double percent = owner._hScrollBar.Value * 100.0 / (owner._hScrollBar.Maximum - owner._hScrollBar.LargeChange); 204&& owner._hScrollBar.Visible ? owner.HorizontalViewSize : 100; 210this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._hScrollBar.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
35printPreviewControl._hScrollBar.Visible && 37? printPreviewControl._hScrollBar.AccessibilityObject 40=> printPreviewControl._hScrollBar.Visible && 42scrollBar == printPreviewControl._hScrollBar