64 writes to Value
System.Windows.Forms (29)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2691
_horizScrollBar.
Value
= value;
4107
_vertScrollBar.
Value
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
4549
_vertScrollBar.
Value
= ComputeHeightOfScrolledOffRows();
10342
_horizScrollBar.
Value
= 0;
10363
_vertScrollBar.
Value
= ComputeHeightOfScrolledOffRows();
10385
_vertScrollBar.
Value
= 0;
14356
_horizScrollBar.
Value
= _horizontalOffset;
17201
_horizScrollBar.
Value
= _horizontalOffset;
26335
_vertScrollBar.
Value
= VerticalScrollingOffset;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3630
ScrollBar.
Value
= e.NewValue;
4553
ScrollBar.
Value
= newPosition;
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
764
_hScrollBar.
Value
= Math.Clamp(value.X, _hScrollBar.Minimum, _hScrollBar.Maximum);
765
_vScrollBar.
Value
= Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum);
812
_hScrollBar.
Value
= 0;
839
_vScrollBar.
Value
= 0;
883
scrollBar.
Value
-= diff;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (10)
109
owner._hScrollBar.
Value
= (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue);
113
owner._hScrollBar.
Value
= (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue);
117
owner._hScrollBar.
Value
= (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : scrollValue);
121
owner._hScrollBar.
Value
= (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : 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);
140
owner._vScrollBar.
Value
= (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue);
144
owner._vScrollBar.
Value
= (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue);
163
owner._hScrollBar.
Value
= scrollValue;
169
owner._vScrollBar.
Value
= scrollValue;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
251
Value
= value;
722
Value
= se.NewValue;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
177
owner.
Value
= (int)newValue;
System.Windows.Forms.Tests (33)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
276
Value
= value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
338
Value
= value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
376
Value
= value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
348
Value
= value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
363
Value
= value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
268
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
322
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
360
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
332
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
347
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
268
Value
= value,
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
264
Value
= value,
System\Windows\Forms\ScrollBarTests.cs (21)
603
Value
= 25,
983
Value
= 10,
1018
Value
= 5,
1046
Value
= 5
1108
Value
= 5,
1168
Value
= 10,
1565
Value
= value
1575
control.
Value
= value;
1601
control.
Value
= value;
1623
control.
Value
= value;
1665
control.
Value
= value;
1687
control.
Value
= value;
1723
control.
Value
= 1;
1728
control.
Value
= 1;
1733
control.
Value
= 2;
1739
control.
Value
= 1;
1751
ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(paramName, () => control.
Value
= value);
2476
Value
= originalValue
2832
Value
= originalValue
3112
vScrollBar.
Value
= value;
3131
hScrollBar.
Value
= value;
WinFormsControlsTest (2)
ToolStripTests.cs (2)
16
toolStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() {
Value
= 30 })); // HScrollBar doesn't support UIA
18
statusStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() {
Value
= 30 })); // HScrollBar doesn't support UIA
176 references to Value
System.Windows.Forms (48)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
4544
int oldVertScrollBarValue = _vertScrollBar.
Value
;
4551
VerticalScrollingOffset = _vertScrollBar.
Value
;
4563
Debug.Assert(VerticalScrollingOffset == _vertScrollBar.
Value
);
10374
VerticalScrollingOffset = _vertScrollBar.
Value
;
16571
while (_vertScrollBar.
Value
!= _vertScrollBar.Minimum && absScrollBands > 0)
16577
if (_vertScrollBar.
Value
== _vertScrollBar.Minimum)
16592
&& _vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16603
if (_vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16629
while (_horizScrollBar.
Value
!= extremeScrollBarValue && absScrollBands > 0)
16635
if (_horizScrollBar.
Value
== extremeScrollBarValue)
17181
if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.
Value
)
28440
if (_vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28452
if (_vertScrollBar.
Value
!= _vertScrollBar.Minimum)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
1768
int pos = ScrollBar.
Value
;
2068
if (newValue == ScrollBar.
Value
3213
if (_scrollBar!.
Value
<= _scrollBar.Minimum)
3224
if (_scrollBar!.
Value
> (_scrollBar.Maximum - _visibleRows + 1))
3619
e.NewValue = ScrollBar.
Value
;
3635
SelectGridEntry(oldGridEntry, pageIn: ScrollBar.
Value
== TotalProperties);
4550
int oldPosition = ScrollBar.
Value
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (6)
619
_position.X = _hScrollBar.
Value
;
620
_position.Y = _vScrollBar.
Value
;
810
else if (_hScrollBar.
Value
> 0)
837
else if (_vScrollBar.
Value
> 0)
877
if (scrollBar.
Value
> 0)
881
if (scrollBar.
Value
>= diff)
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (10)
108
scrollValue = owner._hScrollBar.
Value
+ owner._hScrollBar.LargeChange;
112
scrollValue = owner._hScrollBar.
Value
+ owner._hScrollBar.SmallChange;
116
scrollValue = owner._hScrollBar.
Value
- owner._hScrollBar.LargeChange;
120
scrollValue = owner._hScrollBar.
Value
- owner._hScrollBar.SmallChange;
131
scrollValue = owner._vScrollBar.
Value
+ owner._vScrollBar.LargeChange;
135
scrollValue = owner._vScrollBar.
Value
+ owner._vScrollBar.SmallChange;
139
scrollValue = owner._vScrollBar.
Value
- owner._vScrollBar.LargeChange;
143
scrollValue = owner._vScrollBar.
Value
- owner._vScrollBar.SmallChange;
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 (6)
14
[DefaultProperty(nameof(
Value
))]
201
/// Gets or sets a value to be added or subtracted to the <see cref="
Value
"/>
291
/// Gets or sets the value to be added or subtracted to the <see cref="
Value
"/>
363
throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(
Value
), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
464
/// Occurs when the <see cref="
Value
"/> property has
594
return $"{s}, Minimum: {Minimum}, Maximum: {Maximum}, Value: {
Value
}";
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
158
internal override double RangeValue => this.TryGetOwnerAs(out ScrollBar? owner) ? owner.
Value
: base.RangeValue;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (2)
32
? ParentInternal.UIMaximum > OwningScrollBar.
Value
33
: OwningScrollBar.Minimum != OwningScrollBar.
Value
;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (2)
32
? OwningScrollBar.Minimum != OwningScrollBar.
Value
33
: ParentInternal.UIMaximum > OwningScrollBar.
Value
;
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
178
/// Gets or sets the value to be added or subtracted to the <see cref="ScrollBar.
Value
"/>
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ByteViewer.cs (1)
601
_startLine = _scrollBar.
Value
;
System.Windows.Forms.Tests (125)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (12)
207
Assert.Equal(50, scrollBar.
Value
);
211
Assert.Equal(51, scrollBar.
Value
);
215
Assert.Equal(52, scrollBar.
Value
);
225
Assert.Equal(50, scrollBar.
Value
);
229
Assert.Equal(49, scrollBar.
Value
);
233
Assert.Equal(48, scrollBar.
Value
);
247
Assert.Equal(value, scrollBar.
Value
);
251
Assert.Equal(value, scrollBar.
Value
);
262
Assert.Equal(value, scrollBar.
Value
);
266
Assert.Equal(value, scrollBar.
Value
);
277
Assert.Equal(value, scrollBar.
Value
);
281
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (14)
230
Assert.Equal(50, scrollBar.
Value
);
234
Assert.Equal(52, scrollBar.
Value
);
238
Assert.Equal(54, scrollBar.
Value
);
248
Assert.Equal(50, scrollBar.
Value
);
252
Assert.Equal(48, scrollBar.
Value
);
256
Assert.Equal(46, scrollBar.
Value
);
270
Assert.Equal(value, scrollBar.
Value
);
274
Assert.Equal(value, scrollBar.
Value
);
285
Assert.Equal(value, scrollBar.
Value
);
289
Assert.Equal(value, scrollBar.
Value
);
300
Assert.Equal(value, scrollBar.
Value
);
304
Assert.Equal(value, scrollBar.
Value
);
315
Assert.Equal(value, scrollBar.
Value
);
319
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (12)
217
Assert.Equal(50, scrollBar.
Value
);
221
Assert.Equal(49, scrollBar.
Value
);
225
Assert.Equal(48, scrollBar.
Value
);
235
Assert.Equal(50, scrollBar.
Value
);
239
Assert.Equal(51, scrollBar.
Value
);
243
Assert.Equal(52, scrollBar.
Value
);
257
Assert.Equal(value, scrollBar.
Value
);
261
Assert.Equal(value, scrollBar.
Value
);
272
Assert.Equal(value, scrollBar.
Value
);
276
Assert.Equal(value, scrollBar.
Value
);
287
Assert.Equal(value, scrollBar.
Value
);
291
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (14)
217
Assert.Equal(50, scrollBar.
Value
);
221
Assert.Equal(48, scrollBar.
Value
);
225
Assert.Equal(46, scrollBar.
Value
);
235
Assert.Equal(50, scrollBar.
Value
);
239
Assert.Equal(52, scrollBar.
Value
);
243
Assert.Equal(54, scrollBar.
Value
);
257
Assert.Equal(value, scrollBar.
Value
);
261
Assert.Equal(value, scrollBar.
Value
);
272
Assert.Equal(value, scrollBar.
Value
);
276
Assert.Equal(value, scrollBar.
Value
);
287
Assert.Equal(value, scrollBar.
Value
);
291
Assert.Equal(value, scrollBar.
Value
);
302
Assert.Equal(value, scrollBar.
Value
);
306
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
172
Assert.Equal(expected, (double)scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (9)
209
Assert.Equal(50, scrollBar.
Value
);
213
Assert.Equal(49, scrollBar.
Value
);
217
Assert.Equal(48, scrollBar.
Value
);
231
Assert.Equal(value, scrollBar.
Value
);
235
Assert.Equal(value, scrollBar.
Value
);
246
Assert.Equal(value, scrollBar.
Value
);
250
Assert.Equal(value, scrollBar.
Value
);
261
Assert.Equal(value, scrollBar.
Value
);
265
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (11)
232
Assert.Equal(50, scrollBar.
Value
);
236
Assert.Equal(48, scrollBar.
Value
);
240
Assert.Equal(46, scrollBar.
Value
);
254
Assert.Equal(value, scrollBar.
Value
);
258
Assert.Equal(value, scrollBar.
Value
);
269
Assert.Equal(value, scrollBar.
Value
);
273
Assert.Equal(value, scrollBar.
Value
);
284
Assert.Equal(value, scrollBar.
Value
);
288
Assert.Equal(value, scrollBar.
Value
);
299
Assert.Equal(value, scrollBar.
Value
);
303
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (9)
219
Assert.Equal(50, scrollBar.
Value
);
223
Assert.Equal(51, scrollBar.
Value
);
227
Assert.Equal(52, scrollBar.
Value
);
241
Assert.Equal(value, scrollBar.
Value
);
245
Assert.Equal(value, scrollBar.
Value
);
256
Assert.Equal(value, scrollBar.
Value
);
260
Assert.Equal(value, scrollBar.
Value
);
271
Assert.Equal(value, scrollBar.
Value
);
275
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (11)
219
Assert.Equal(50, scrollBar.
Value
);
223
Assert.Equal(52, scrollBar.
Value
);
227
Assert.Equal(54, scrollBar.
Value
);
241
Assert.Equal(value, scrollBar.
Value
);
245
Assert.Equal(value, scrollBar.
Value
);
256
Assert.Equal(value, scrollBar.
Value
);
260
Assert.Equal(value, scrollBar.
Value
);
271
Assert.Equal(value, scrollBar.
Value
);
275
Assert.Equal(value, scrollBar.
Value
);
286
Assert.Equal(value, scrollBar.
Value
);
290
Assert.Equal(value, scrollBar.
Value
);
System\Windows\Forms\HScrollBarTests.cs (1)
113
Assert.Equal(0, control.
Value
);
System\Windows\Forms\ScrollBarTests.cs (30)
101
Assert.Equal(0, control.
Value
);
839
Assert.Equal(0, control.
Value
);
848
Assert.Equal(0, control.
Value
);
873
Assert.Equal(0, control.
Value
);
895
Assert.Equal(0, control.
Value
);
936
Assert.Equal(0, control.
Value
);
958
Assert.Equal(0, control.
Value
);
989
Assert.Equal(5, control.
Value
);
1004
Assert.Equal(-1, control.
Value
);
1023
Assert.Equal(5, control.
Value
);
1032
Assert.Equal(5, control.
Value
);
1059
Assert.Equal(5, control.
Value
);
1081
Assert.Equal(5, control.
Value
);
1122
Assert.Equal(5, control.
Value
);
1144
Assert.Equal(5, control.
Value
);
1174
Assert.Equal(12, control.
Value
);
1569
Assert.Equal(value, control.
Value
);
1578
Assert.Equal(value, control.
Value
);
1604
Assert.Equal(value, control.
Value
);
1626
Assert.Equal(value, control.
Value
);
1668
Assert.Equal(value, control.
Value
);
1690
Assert.Equal(value, control.
Value
);
1724
Assert.Equal(1, control.
Value
);
1729
Assert.Equal(1, control.
Value
);
1734
Assert.Equal(2, control.
Value
);
1740
Assert.Equal(1, control.
Value
);
1752
string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.
Value
), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.Maximum)}'")).Message;
1754
Assert.Equal(0, control.
Value
);
2492
Assert.Equal(expectedValue, control.
Value
);
2853
Assert.Equal(expectedValue, control.
Value
);
System\Windows\Forms\VScrollBarTests.cs (1)
112
Assert.Equal(0, control.
Value
);
WinFormsControlsTest (2)
ScrollBars.cs (2)
37
lblHValue.Text = $"Value: {hScrollBar.
Value
}";
38
lblVValue.Text = $"Value: {vScrollBar.
Value
}";