11 writes to Maximum
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
4541_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10313_horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10333_horizScrollBar.Maximum = 1; 10355_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10377_vertScrollBar.Maximum = 1; 14983_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4853ScrollBar.Maximum = Math.Max(0, TotalProperties - 1);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
874scrollBar.Maximum = virtualDimension;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\ByteViewer.cs (3)
485_scrollBar.Maximum = _linesCount - 1; 494_scrollBar.Maximum = _rowCount; 572_scrollBar.Maximum = _linesCount - 1;
43 references to Maximum
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
4095if (value > _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight) 4097value = _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
4539int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8); 4542Debug.Assert(_vertScrollBar.Maximum > 0); 4550(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum, 8571|| _vertScrollBar.Maximum == visibleRowsHeight - frozenVisibleRowsHeight); 10314Debug.Assert(_horizScrollBar.Maximum > 0); 10356Debug.Assert(_vertScrollBar.Maximum > 0); 16584<= _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 16595> _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 16615extremeScrollBarValue = _horizScrollBar.Maximum; 17171int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 28430_vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 28470if (se.NewValue >= _vertScrollBar.Maximum - _vertScrollBar.LargeChange) 28473VerticalOffset = _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2093|| newValue > ScrollBar.Maximum 3262if (_scrollBar!.Value > (_scrollBar.Maximum - _visibleRows + 1)) 4272if (newOffset >= ScrollBar.Minimum && newOffset < ScrollBar.Maximum)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (2)
44else if (delta > gridView.ScrollBar.Maximum) 46delta = gridView.ScrollBar.Maximum - 1;
System\Windows\Forms\Printing\PrintPreviewControl.cs (6)
764_hScrollBar.Value = Math.Clamp(value.X, _hScrollBar.Minimum, _hScrollBar.Maximum); 765_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum); 953maxPos = vertical ? _vScrollBar.Maximum : _hScrollBar.Maximum; 1018maxPos = _vScrollBar.Maximum - _vScrollBar.SmallChange; 1056maxPos = _hScrollBar.Maximum - _hScrollBar.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (12)
109owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 113owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 132owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 136owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 162scrollValue = owner._hScrollBar.Minimum + (int)((owner._hScrollBar.Maximum - owner._hScrollBar.Minimum) * horizontalPercent); 168scrollValue = owner._vScrollBar.Minimum + (int)((owner._vScrollBar.Maximum - owner._vScrollBar.Minimum) * verticalPercent); 181double percent = owner._hScrollBar.Value * 100.0 / (owner._hScrollBar.Maximum - owner._hScrollBar.LargeChange); 195double percent = owner._vScrollBar.Value * 100.0 / (owner._vScrollBar.Maximum - owner._vScrollBar.LargeChange);
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
356throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'")); 587return $"{s}, Minimum: {Minimum}, Maximum: {Maximum}, Value: {Value}";
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (2)
43internal int UIMaximum => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.Maximum - owner.LargeChange + 1 : 0; 164internal override double Maximum => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.Maximum : base.Maximum;
System\Windows\Forms\Scrolling\ScrollEventType.cs (1)
52/// The scroll box was moved to the <see cref="ScrollBar.Maximum"/>