1 write to _vScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
80_vScrollBar = new()
84 references to _vScrollBar
System.Windows.Forms (84)
System\Windows\Forms\Printing\PrintPreviewControl.cs (39)
90_vScrollBar.ValueChanged += scrollBar_ValueChanged; 91Controls.Add(_vScrollBar); 469if (_vScrollBar.Visible) 471rect.Width -= _vScrollBar.Width; 475rect.X += _vScrollBar.Width; 485private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height); 641_position.Y = _vScrollBar.Value; 731if (!_hScrollBar.Visible || !_vScrollBar.Visible) 789_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum); 820bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded); 826_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0); 832offset: (verticalScrollNeeded ? _vScrollBar.Width : 0)); 839_vScrollBar.Visible = verticalScrollNeeded; 842_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0); 846_vScrollBar.Left = availableRect.Left; 847_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; 851_vScrollBar.Left = availableRect.Right - _vScrollBar.Width; 852_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; 856_vScrollBar, 861else if (_vScrollBar.Value > 0) 863_vScrollBar.Value = 0; 878bool horizontal = _virtualSize.Width > displaySize.Width && displaySize.Width > _vScrollBar.Width; 883horizontal = _virtualSize.Width > (displaySize.Width - _vScrollBar.Width); 932bool scrollVisible = _vScrollBar.Visible || _hScrollBar.Visible; 933bool vertical = _vScrollBar.Visible; 934int largeChange = vertical ? _vScrollBar.LargeChange : _hScrollBar.LargeChange; 977maxPos = vertical ? _vScrollBar.Maximum : _hScrollBar.Maximum; 1021if (_vScrollBar.Visible) 1024if (pos > _vScrollBar.SmallChange) 1026pos -= _vScrollBar.SmallChange; 1039if (_vScrollBar.Visible) 1042maxPos = _vScrollBar.Maximum - _vScrollBar.SmallChange; 1044if (pos < maxPos - _vScrollBar.SmallChange) 1046pos += _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