1 write to _vScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
81_vScrollBar = new()
84 references to _vScrollBar
System.Windows.Forms (84)
System\Windows\Forms\Printing\PrintPreviewControl.cs (39)
91_vScrollBar.ValueChanged += scrollBar_ValueChanged; 92Controls.Add(_vScrollBar); 454if (_vScrollBar.Visible) 456rect.Width -= _vScrollBar.Width; 460rect.X += _vScrollBar.Width; 470private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height); 626_position.Y = _vScrollBar.Value; 713if (!_hScrollBar.Visible || !_vScrollBar.Visible) 771_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum); 802bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded); 808_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0); 814offset: (verticalScrollNeeded ? _vScrollBar.Width : 0)); 821_vScrollBar.Visible = verticalScrollNeeded; 824_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0); 828_vScrollBar.Left = availableRect.Left; 829_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; 833_vScrollBar.Left = availableRect.Right - _vScrollBar.Width; 834_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; 838_vScrollBar, 843else if (_vScrollBar.Value > 0) 845_vScrollBar.Value = 0; 860bool horizontal = _virtualSize.Width > displaySize.Width && displaySize.Width > _vScrollBar.Width; 865horizontal = _virtualSize.Width > (displaySize.Width - _vScrollBar.Width); 914bool scrollVisible = _vScrollBar.Visible || _hScrollBar.Visible; 915bool vertical = _vScrollBar.Visible; 916int largeChange = vertical ? _vScrollBar.LargeChange : _hScrollBar.LargeChange; 959maxPos = vertical ? _vScrollBar.Maximum : _hScrollBar.Maximum; 1003if (_vScrollBar.Visible) 1006if (pos > _vScrollBar.SmallChange) 1008pos -= _vScrollBar.SmallChange; 1021if (_vScrollBar.Visible) 1024maxPos = _vScrollBar.Maximum - _vScrollBar.SmallChange; 1026if (pos < maxPos - _vScrollBar.SmallChange) 1028pos += _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