11 writes to Maximum
System.Windows.Forms (9)
winforms\Managed\System\WinForms\DataGrid.cs (2)
1402
vertScrollBar.
Maximum
= Math.Max(0, DataGridRowsLength - 1);
6821
horizScrollBar.
Maximum
= totalWidth;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
4510
this.vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10490
this.horizScrollBar.
Maximum
= totalVisibleWidth - totalVisibleFrozenWidth;
10510
this.horizScrollBar.
Maximum
= 1;
10532
this.vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
10554
this.vertScrollBar.
Maximum
= 1;
15498
this.vertScrollBar.
Maximum
= totalVisibleHeight - totalVisibleFrozenHeight;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
4890
ScrollBar.
Maximum
= Math.Max(0,totalProps - 1);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\WorkflowView.cs (2)
1801
hScrollBar.
Maximum
= maximumScrollSize.Width;
1803
vScrollBar.
Maximum
= maximumScrollSize.Height;
46 references to Maximum
System.Windows.Forms (22)
winforms\Managed\System\WinForms\DataGridView.cs (2)
5203
if (value > this.vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight)
5205
value = this.vertScrollBar.
Maximum
- fittingTrailingScrollingRowsHeight;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (13)
4508
int oldThumbHeight = Math.Max(((this.vertScrollBar.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.
Maximum
, 8);
4511
Debug.Assert(this.vertScrollBar.
Maximum
> 0);
4518
oldThumbHeight != Math.Max(((this.vertScrollBar.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.
Maximum
, 8)))
8651
this.vertScrollBar.
Maximum
== visibleRowsHeight - frozenVisibleRowsHeight);
10491
Debug.Assert(this.horizScrollBar.
Maximum
> 0);
10533
Debug.Assert(this.vertScrollBar.
Maximum
> 0);
17024
this.vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
17033
this.vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
17053
extremeScrollBarValue = this.horizScrollBar.
Maximum
;
17626
int newHorizontalOffset = this.horizScrollBar.
Maximum
- this.horizScrollBar.LargeChange - dataGridViewColumn.Thickness;
28494
this.vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28528
if (se.NewValue >= this.vertScrollBar.
Maximum
- this.vertScrollBar.LargeChange)
28531
this.VerticalOffset = this.vertScrollBar.
Maximum
- ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
2323
newValue > ScrollBar.
Maximum
||
3414
if (this.scrollBar.Value > (scrollBar.
Maximum
-visibleRows+1)) {
4344
if (newOffset >= ScrollBar.Minimum && newOffset < ScrollBar.
Maximum
) {
7809
else if (delta > gridView.ScrollBar.
Maximum
) {
7810
delta = gridView.ScrollBar.
Maximum
- 1;
winforms\Managed\System\WinForms\ScrollBar.cs (1)
782
return s + ", Minimum: " + Minimum.ToString(CultureInfo.CurrentCulture) + ", Maximum: " +
Maximum
.ToString(CultureInfo.CurrentCulture) + ", Value: " + Value.ToString(CultureInfo.CurrentCulture);
winforms\Managed\System\WinForms\ScrollEventType.cs (1)
108
/// scroll box was moved to the <see cref='System.Windows.Forms.ScrollBar.
Maximum
'/>
System.Workflow.ComponentModel (24)
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
121
else if (clientPoint.X >= clientRectangle.Right - clientRectangle.Width / 10 && hScrollBar.Value < hScrollBar.
Maximum
- hScrollBar.LargeChange)
127
else if (clientPoint.Y >= clientRectangle.Bottom - clientRectangle.Height / 10 && vScrollBar.Value < vScrollBar.
Maximum
- vScrollBar.LargeChange)
216
if (scrollPosition.X < parentView.HScrollBar.
Maximum
- viewPortSize.Width)
231
if (scrollPosition.Y < parentView.VScrollBar.
Maximum
- viewPortSize.Height)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (4)
183
relativeCenterF = new PointF((float)center.X / (float)parentView.HScrollBar.
Maximum
, (float)center.Y / (float)parentView.VScrollBar.
Maximum
);
187
Point newCenter = new Point((int)((float)parentView.HScrollBar.
Maximum
* relativeCenterF.X), (int)((float)parentView.VScrollBar.
Maximum
* relativeCenterF.Y));
AuthoringOM\Design\WorkflowView.cs (16)
351
oldRelativeCenter = new PointF((float)oldCenter.X / (float)hScrollBar.
Maximum
, (float)oldCenter.Y / (float)vScrollBar.
Maximum
);
358
Point newCenter = new Point((int)((float)hScrollBar.
Maximum
* oldRelativeCenter.X), (int)((float)vScrollBar.
Maximum
* oldRelativeCenter.Y));
466
value.X = Math.Min(value.X, hScrollBar.
Maximum
- hScrollBar.LargeChange + 1);
474
value.Y = Math.Min(value.Y, vScrollBar.
Maximum
- vScrollBar.LargeChange + 1);
943
if (HScrollBar.
Maximum
> ViewPortSize.Width || VScrollBar.
Maximum
> ViewPortSize.Height)
1800
if (hScrollBar.
Maximum
!= maximumScrollSize.Width)
1802
if (vScrollBar.
Maximum
!= maximumScrollSize.Height)
1830
hScrollBar.Visible = (hScrollBar.
Maximum
> currentSize.Width);
1834
vScrollBar.Visible = (vScrollBar.
Maximum
> currentSize.Height);
1863
if (HScrollBar.
Maximum
> ViewPortSize.Width || VScrollBar.
Maximum
> ViewPortSize.Height)
1891
if (HScrollBar.
Maximum
> ViewPortSize.Width || VScrollBar.
Maximum
> ViewPortSize.Height)