39 writes to Maximum
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
4547
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10318
_horizScrollBar.
Maximum
= totalVisibleWidth - totalVisibleFrozenWidth;
10338
_horizScrollBar.
Maximum
= 1;
10360
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10382
_vertScrollBar.
Maximum
= 1;
14974
_vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4821
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;
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
278
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
340
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
378
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
350
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
365
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
270
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
324
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
362
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
334
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
349
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
270
Maximum
= maximum,
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
266
Maximum
= maximum,
System\Windows\Forms\ScrollBarTests.cs (14)
604
Maximum
= 105,
709
Maximum
= 10,
716
control.
Maximum
= 15;
835
Maximum
= value
845
control.
Maximum
= value;
870
control.
Maximum
= value;
892
control.
Maximum
= value;
933
control.
Maximum
= value;
955
control.
Maximum
= value;
985
Maximum
= 5
1000
Maximum
= -1
1169
Maximum
= 8,
3111
vScrollBar.
Maximum
= maximum;
3130
hScrollBar.
Maximum
= maximum;
WinFormsControlsTest (2)
ScrollBars.cs (2)
17
hScrollBar.
Maximum
= decimal.ToInt32(numericMaximum.Value);
18
vScrollBar.
Maximum
= decimal.ToInt32(numericMaximum.Value);
68 references to Maximum
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
4094
if (value > _vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight)
4096
value = _vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
4545
int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.
Maximum
, 8);
4548
Debug.Assert(_vertScrollBar.
Maximum
> 0);
4556
(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.
Maximum
,
8576
|| _vertScrollBar.
Maximum
== visibleRowsHeight - frozenVisibleRowsHeight);
10319
Debug.Assert(_horizScrollBar.
Maximum
> 0);
10361
Debug.Assert(_vertScrollBar.
Maximum
> 0);
16574
<= _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16585
> _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16605
extremeScrollBarValue = _horizScrollBar.
Maximum
;
17161
int newHorizontalOffset = _horizScrollBar.
Maximum
- _horizScrollBar.LargeChange - dataGridViewColumn.Thickness;
28422
_vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28462
if (se.NewValue >= _vertScrollBar.
Maximum
- _vertScrollBar.LargeChange)
28465
VerticalOffset = _vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2070
|| newValue > ScrollBar.
Maximum
3224
if (_scrollBar!.Value > (_scrollBar.
Maximum
- _visibleRows + 1))
4234
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)
363
throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(
Maximum
)}'"));
594
return $"{s}, Minimum: {Minimum}, Maximum: {
Maximum
}, Value: {Value}";
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (2)
44
internal int UIMaximum => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.
Maximum
- owner.LargeChange + 1 : 0;
165
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
"/>
System.Windows.Forms.Tests (25)
System\Windows\Forms\HScrollBarTests.cs (1)
86
Assert.Equal(100, control.
Maximum
);
System\Windows\Forms\ScrollBarTests.cs (23)
76
Assert.Equal(100, control.
Maximum
);
837
Assert.Equal(value, control.
Maximum
);
846
Assert.Equal(value, control.
Maximum
);
871
Assert.Equal(value, control.
Maximum
);
893
Assert.Equal(value, control.
Maximum
);
934
Assert.Equal(value, control.
Maximum
);
956
Assert.Equal(value, control.
Maximum
);
987
Assert.Equal(5, control.
Maximum
);
1002
Assert.Equal(-1, control.
Maximum
);
1021
Assert.Equal(100, control.
Maximum
);
1030
Assert.Equal(100, control.
Maximum
);
1057
Assert.Equal(100, control.
Maximum
);
1079
Assert.Equal(100, control.
Maximum
);
1120
Assert.Equal(100, control.
Maximum
);
1142
Assert.Equal(100, control.
Maximum
);
1172
Assert.Equal(12, control.
Maximum
);
1567
Assert.Equal(100, control.
Maximum
);
1576
Assert.Equal(100, control.
Maximum
);
1602
Assert.Equal(100, control.
Maximum
);
1624
Assert.Equal(100, control.
Maximum
);
1666
Assert.Equal(100, control.
Maximum
);
1688
Assert.Equal(100, control.
Maximum
);
1752
string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.Value), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.
Maximum
)}'")).Message;
System\Windows\Forms\VScrollBarTests.cs (1)
85
Assert.Equal(100, control.
Maximum
);