11 writes to Maximum
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
4600
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10372
_horizScrollBar.
Maximum
= totalVisibleWidth - totalVisibleFrozenWidth;
10392
_horizScrollBar.
Maximum
= 1;
10414
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10436
_vertScrollBar.
Maximum
= 1;
15042
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4865
ScrollBar.
Maximum
= Math.Max(0, TotalProperties - 1);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
898
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)
4598
int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.
Maximum
, 8);
4601
Debug.Assert(_vertScrollBar.
Maximum
> 0);
4609
(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.
Maximum
,
8630
|| _vertScrollBar.
Maximum
== visibleRowsHeight - frozenVisibleRowsHeight);
10373
Debug.Assert(_horizScrollBar.
Maximum
> 0);
10415
Debug.Assert(_vertScrollBar.
Maximum
> 0);
16649
<= _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16660
> _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16680
extremeScrollBarValue = _horizScrollBar.
Maximum
;
17236
int newHorizontalOffset = _horizScrollBar.
Maximum
- _horizScrollBar.LargeChange - dataGridViewColumn.Thickness;
28503
_vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28543
if (se.NewValue >= _vertScrollBar.
Maximum
- _vertScrollBar.LargeChange)
28546
VerticalOffset = _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2099
|| newValue > ScrollBar.
Maximum
3274
if (_scrollBar!.Value > (_scrollBar.
Maximum
- _visibleRows + 1))
4284
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)
788
_hScrollBar.Value = Math.Clamp(value.X, _hScrollBar.Minimum, _hScrollBar.
Maximum
);
789
_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.
Maximum
);
977
maxPos = vertical ? _vScrollBar.
Maximum
: _hScrollBar.
Maximum
;
1042
maxPos = _vScrollBar.
Maximum
- _vScrollBar.SmallChange;
1080
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
"/>