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