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)
4853
ScrollBar.
Maximum
= Math.Max(0, TotalProperties - 1);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
874
scrollBar.
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)
4095
if (value > _vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight)
4097
value = _vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
4539
int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.
Maximum
, 8);
4542
Debug.Assert(_vertScrollBar.
Maximum
> 0);
4550
(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.
Maximum
,
8571
|| _vertScrollBar.
Maximum
== visibleRowsHeight - frozenVisibleRowsHeight);
10314
Debug.Assert(_horizScrollBar.
Maximum
> 0);
10356
Debug.Assert(_vertScrollBar.
Maximum
> 0);
16584
<= _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16595
> _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16615
extremeScrollBarValue = _horizScrollBar.
Maximum
;
17171
int newHorizontalOffset = _horizScrollBar.
Maximum
- _horizScrollBar.LargeChange - dataGridViewColumn.Thickness;
28430
_vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28470
if (se.NewValue >= _vertScrollBar.
Maximum
- _vertScrollBar.LargeChange)
28473
VerticalOffset = _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2093
|| newValue > ScrollBar.
Maximum
3262
if (_scrollBar!.Value > (_scrollBar.
Maximum
- _visibleRows + 1))
4272
if (newOffset >= ScrollBar.Minimum && newOffset < ScrollBar.
Maximum
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (2)
44
else if (delta > gridView.ScrollBar.
Maximum
)
46
delta = 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
);
953
maxPos = vertical ? _vScrollBar.
Maximum
: _hScrollBar.
Maximum
;
1018
maxPos = _vScrollBar.
Maximum
- _vScrollBar.SmallChange;
1056
maxPos = _hScrollBar.
Maximum
- _hScrollBar.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (12)
109
owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.
Maximum
? owner._hScrollBar.
Maximum
: scrollValue);
113
owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.
Maximum
? owner._hScrollBar.
Maximum
: scrollValue);
132
owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.
Maximum
? owner._vScrollBar.
Maximum
: scrollValue);
136
owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.
Maximum
? owner._vScrollBar.
Maximum
: scrollValue);
162
scrollValue = owner._hScrollBar.Minimum + (int)((owner._hScrollBar.
Maximum
- owner._hScrollBar.Minimum) * horizontalPercent);
168
scrollValue = owner._vScrollBar.Minimum + (int)((owner._vScrollBar.
Maximum
- owner._vScrollBar.Minimum) * verticalPercent);
181
double percent = owner._hScrollBar.Value * 100.0 / (owner._hScrollBar.
Maximum
- owner._hScrollBar.LargeChange);
195
double percent = owner._vScrollBar.Value * 100.0 / (owner._vScrollBar.
Maximum
- owner._vScrollBar.LargeChange);
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
356
throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(
Maximum
)}'"));
587
return $"{s}, Minimum: {Minimum}, Maximum: {
Maximum
}, Value: {Value}";
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (2)
43
internal int UIMaximum => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.
Maximum
- owner.LargeChange + 1 : 0;
164
internal 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
"/>