24 writes to SmallChange
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
10320
_horizScrollBar.
SmallChange
= 1;
10339
_horizScrollBar.
SmallChange
= 1;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
70
SmallChange
= ScrollSmallChange,
83
SmallChange
= ScrollSmallChange,
System.Windows.Forms.Tests (20)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
341
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
381
SmallChange
= 1
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
352
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
367
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
272
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
325
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
365
SmallChange
= 1
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
336
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
351
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
272
SmallChange
= 1,
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
267
SmallChange
= 1,
System\Windows\Forms\ScrollBarTests.cs (9)
606
SmallChange
= 10,
1272
SmallChange
= value
1278
control.
SmallChange
= value;
1289
SmallChange
= 11
1317
control.
SmallChange
= value;
1325
control.
SmallChange
= value;
1353
control.
SmallChange
= value;
1361
control.
SmallChange
= value;
1373
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
SmallChange
= -1);
50 references to SmallChange
System.Windows.Forms (17)
System\Windows\Forms\Printing\PrintPreviewControl.cs (10)
1000
if (pos > _vScrollBar.
SmallChange
)
1002
pos -= _vScrollBar.
SmallChange
;
1018
maxPos = _vScrollBar.Maximum - _vScrollBar.
SmallChange
;
1020
if (pos < maxPos - _vScrollBar.
SmallChange
)
1022
pos += _vScrollBar.
SmallChange
;
1038
if (pos > _hScrollBar.
SmallChange
)
1040
pos -= _hScrollBar.
SmallChange
;
1056
maxPos = _hScrollBar.Maximum - _hScrollBar.
SmallChange
;
1058
if (pos < maxPos - _hScrollBar.
SmallChange
)
1060
pos += _hScrollBar.
SmallChange
;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (4)
112
scrollValue = owner._hScrollBar.Value + owner._hScrollBar.
SmallChange
;
120
scrollValue = owner._hScrollBar.Value - owner._hScrollBar.
SmallChange
;
135
scrollValue = owner._vScrollBar.Value + owner._vScrollBar.
SmallChange
;
143
scrollValue = owner._vScrollBar.Value - owner._vScrollBar.
SmallChange
;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
683
newValue = Math.Max(_value -
SmallChange
, _minimum);
687
newValue = Math.Min(_value +
SmallChange
, _maximum - LargeChange + 1);
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
163
internal override double SmallChange => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.
SmallChange
: base.SmallChange;
System.Windows.Forms.Tests (33)
System\Windows\Forms\HScrollBarTests.cs (1)
106
Assert.Equal(1, control.
SmallChange
);
System\Windows\Forms\ScrollBarTests.cs (31)
94
Assert.Equal(1, control.
SmallChange
);
841
Assert.Equal(1, control.
SmallChange
);
850
Assert.Equal(1, control.
SmallChange
);
875
Assert.Equal(1, control.
SmallChange
);
897
Assert.Equal(1, control.
SmallChange
);
938
Assert.Equal(1, control.
SmallChange
);
960
Assert.Equal(1, control.
SmallChange
);
991
Assert.Equal(1, control.
SmallChange
);
1006
Assert.Equal(1, control.
SmallChange
);
1025
Assert.Equal(1, control.
SmallChange
);
1034
Assert.Equal(1, control.
SmallChange
);
1061
Assert.Equal(1, control.
SmallChange
);
1083
Assert.Equal(1, control.
SmallChange
);
1124
Assert.Equal(1, control.
SmallChange
);
1146
Assert.Equal(1, control.
SmallChange
);
1176
Assert.Equal(1, control.
SmallChange
);
1274
Assert.Equal(expected, control.
SmallChange
);
1279
Assert.Equal(expected, control.
SmallChange
);
1291
Assert.Equal(10, control.
SmallChange
);
1296
Assert.Equal(11, control.
SmallChange
);
1318
Assert.Equal(expected, control.
SmallChange
);
1326
Assert.Equal(expected, control.
SmallChange
);
1354
Assert.Equal(expected, control.
SmallChange
);
1362
Assert.Equal(expected, control.
SmallChange
);
1374
Assert.Equal(1, control.
SmallChange
);
1571
Assert.Equal(1, control.
SmallChange
);
1580
Assert.Equal(1, control.
SmallChange
);
1606
Assert.Equal(1, control.
SmallChange
);
1628
Assert.Equal(1, control.
SmallChange
);
1670
Assert.Equal(1, control.
SmallChange
);
1692
Assert.Equal(1, control.
SmallChange
);
System\Windows\Forms\VScrollBarTests.cs (1)
105
Assert.Equal(1, control.
SmallChange
);