1 write to _vScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
79_vScrollBar = new()
84 references to _vScrollBar
System.Windows.Forms (84)
System\Windows\Forms\Printing\PrintPreviewControl.cs (39)
89_vScrollBar.ValueChanged += scrollBar_ValueChanged; 90Controls.Add(_vScrollBar); 448if (_vScrollBar.Visible) 450rect.Width -= _vScrollBar.Width; 454rect.X += _vScrollBar.Width; 464private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height); 620_position.Y = _vScrollBar.Value; 707if (!_hScrollBar.Visible || !_vScrollBar.Visible) 765_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum); 796bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded); 802_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0); 808offset: (verticalScrollNeeded ? _vScrollBar.Width : 0)); 815_vScrollBar.Visible = verticalScrollNeeded; 818_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0); 822_vScrollBar.Left = availableRect.Left; 823_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; 827_vScrollBar.Left = availableRect.Right - _vScrollBar.Width; 828_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; 832_vScrollBar, 837else if (_vScrollBar.Value > 0) 839_vScrollBar.Value = 0; 854bool horizontal = _virtualSize.Width > displaySize.Width && displaySize.Width > _vScrollBar.Width; 859horizontal = _virtualSize.Width > (displaySize.Width - _vScrollBar.Width); 908bool scrollVisible = _vScrollBar.Visible || _hScrollBar.Visible; 909bool vertical = _vScrollBar.Visible; 910int largeChange = vertical ? _vScrollBar.LargeChange : _hScrollBar.LargeChange; 953maxPos = vertical ? _vScrollBar.Maximum : _hScrollBar.Maximum; 997if (_vScrollBar.Visible) 1000if (pos > _vScrollBar.SmallChange) 1002pos -= _vScrollBar.SmallChange; 1015if (_vScrollBar.Visible) 1018maxPos = _vScrollBar.Maximum - _vScrollBar.SmallChange; 1020if (pos < maxPos - _vScrollBar.SmallChange) 1022pos += _vScrollBar.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (41)
35return owner._vScrollBar.Visible 490 => owner._vScrollBar.Visible ? owner._vScrollBar.AccessibilityObject 521 => owner._vScrollBar.Visible && owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 64&& (owner._vScrollBar.Visible || owner._hScrollBar.Visible), 80=> owner._vScrollBar.Visible 81? owner._vScrollBar.AccessibilityObject 88: owner._vScrollBar.Visible 89? owner._vScrollBar.AccessibilityObject 126if (owner._vScrollBar.Visible && verticalAmount != ScrollAmount.ScrollAmount_NoAmount) 131scrollValue = owner._vScrollBar.Value + owner._vScrollBar.LargeChange; 132owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 135scrollValue = owner._vScrollBar.Value + owner._vScrollBar.SmallChange; 136owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 139scrollValue = owner._vScrollBar.Value - owner._vScrollBar.LargeChange; 140owner._vScrollBar.Value = (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue); 143scrollValue = owner._vScrollBar.Value - owner._vScrollBar.SmallChange; 144owner._vScrollBar.Value = (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue); 166if (owner._vScrollBar.Visible && verticalPercent >= 0 && verticalPercent <= 100) 168scrollValue = owner._vScrollBar.Minimum + (int)((owner._vScrollBar.Maximum - owner._vScrollBar.Minimum) * verticalPercent); 169owner._vScrollBar.Value = scrollValue; 193if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._vScrollBar.Visible) 195double percent = owner._vScrollBar.Value * 100.0 / (owner._vScrollBar.Maximum - owner._vScrollBar.LargeChange); 207&& owner._vScrollBar.Visible ? owner.VerticalViewSize : 100; 213this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._vScrollBar.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
34=> printPreviewControl._vScrollBar.Visible && 36scrollBar == printPreviewControl._vScrollBar 41printPreviewControl._vScrollBar.Visible && 43? printPreviewControl._vScrollBar.AccessibilityObject