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(); 10341_horizScrollBar.Value = 0; 10362_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 10384_vertScrollBar.Value = 0; 14342_horizScrollBar.Value = _horizontalOffset; 17182_horizScrollBar.Value = _horizontalOffset; 26315_vertScrollBar.Value = VerticalScrollingOffset;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3630ScrollBar.Value = e.NewValue; 4553ScrollBar.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; 883scrollBar.Value -= diff;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (10)
109owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 113owner._hScrollBar.Value = (scrollValue > owner._hScrollBar.Maximum ? owner._hScrollBar.Maximum : scrollValue); 117owner._hScrollBar.Value = (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : scrollValue); 121owner._hScrollBar.Value = (scrollValue < owner._hScrollBar.Minimum ? owner._hScrollBar.Minimum : scrollValue); 132owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 136owner._vScrollBar.Value = (scrollValue > owner._vScrollBar.Maximum ? owner._vScrollBar.Maximum : scrollValue); 140owner._vScrollBar.Value = (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue); 144owner._vScrollBar.Value = (scrollValue < owner._vScrollBar.Minimum ? owner._vScrollBar.Minimum : scrollValue); 163owner._hScrollBar.Value = scrollValue; 169owner._vScrollBar.Value = scrollValue;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
251Value = value; 722Value = se.NewValue;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
178owner.Value = (int)newValue;
System.Windows.Forms.Tests (33)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
276Value = value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
338Value = value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
376Value = value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
348Value = value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
363Value = value,
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
268Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
322Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
360Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
332Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
347Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
268Value = value,
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
264Value = value,
System\Windows\Forms\ScrollBarTests.cs (21)
603Value = 25, 983Value = 10, 1018Value = 5, 1046Value = 5 1108Value = 5, 1168Value = 10, 1565Value = value 1575control.Value = value; 1601control.Value = value; 1623control.Value = value; 1665control.Value = value; 1687control.Value = value; 1723control.Value = 1; 1728control.Value = 1; 1733control.Value = 2; 1739control.Value = 1; 1751ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(paramName, () => control.Value = value); 2476Value = originalValue 2832Value = originalValue 3112vScrollBar.Value = value; 3131hScrollBar.Value = value;
WinFormsControlsTest (2)
ToolStripTests.cs (2)
16toolStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() { Value = 30 })); // HScrollBar doesn't support UIA 18statusStrip1.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)
4544int oldVertScrollBarValue = _vertScrollBar.Value; 4551VerticalScrollingOffset = _vertScrollBar.Value; 4563Debug.Assert(VerticalScrollingOffset == _vertScrollBar.Value); 10373VerticalScrollingOffset = _vertScrollBar.Value; 16552while (_vertScrollBar.Value != _vertScrollBar.Minimum && absScrollBands > 0) 16558if (_vertScrollBar.Value == _vertScrollBar.Minimum) 16573&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16584if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16610while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16616if (_horizScrollBar.Value == extremeScrollBarValue) 17162if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 28421if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28433if (_vertScrollBar.Value != _vertScrollBar.Minimum)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
1768int pos = ScrollBar.Value; 2068if (newValue == ScrollBar.Value 3213if (_scrollBar!.Value <= _scrollBar.Minimum) 3224if (_scrollBar!.Value > (_scrollBar.Maximum - _visibleRows + 1)) 3619e.NewValue = ScrollBar.Value; 3635SelectGridEntry(oldGridEntry, pageIn: ScrollBar.Value == TotalProperties); 4550int oldPosition = ScrollBar.Value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (6)
619_position.X = _hScrollBar.Value; 620_position.Y = _vScrollBar.Value; 810else if (_hScrollBar.Value > 0) 837else if (_vScrollBar.Value > 0) 877if (scrollBar.Value > 0) 881if (scrollBar.Value >= diff)
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (10)
108scrollValue = owner._hScrollBar.Value + owner._hScrollBar.LargeChange; 112scrollValue = owner._hScrollBar.Value + owner._hScrollBar.SmallChange; 116scrollValue = owner._hScrollBar.Value - owner._hScrollBar.LargeChange; 120scrollValue = owner._hScrollBar.Value - owner._hScrollBar.SmallChange; 131scrollValue = owner._vScrollBar.Value + owner._vScrollBar.LargeChange; 135scrollValue = owner._vScrollBar.Value + owner._vScrollBar.SmallChange; 139scrollValue = owner._vScrollBar.Value - owner._vScrollBar.LargeChange; 143scrollValue = owner._vScrollBar.Value - owner._vScrollBar.SmallChange; 181double percent = owner._hScrollBar.Value * 100.0 / (owner._hScrollBar.Maximum - owner._hScrollBar.LargeChange); 195double 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"/> 363throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'")); 464/// Occurs when the <see cref="Value"/> property has 594return $"{s}, Minimum: {Minimum}, Maximum: {Maximum}, Value: {Value}";
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
159internal 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)
207Assert.Equal(50, scrollBar.Value); 211Assert.Equal(51, scrollBar.Value); 215Assert.Equal(52, scrollBar.Value); 225Assert.Equal(50, scrollBar.Value); 229Assert.Equal(49, scrollBar.Value); 233Assert.Equal(48, scrollBar.Value); 247Assert.Equal(value, scrollBar.Value); 251Assert.Equal(value, scrollBar.Value); 262Assert.Equal(value, scrollBar.Value); 266Assert.Equal(value, scrollBar.Value); 277Assert.Equal(value, scrollBar.Value); 281Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (14)
230Assert.Equal(50, scrollBar.Value); 234Assert.Equal(52, scrollBar.Value); 238Assert.Equal(54, scrollBar.Value); 248Assert.Equal(50, scrollBar.Value); 252Assert.Equal(48, scrollBar.Value); 256Assert.Equal(46, scrollBar.Value); 270Assert.Equal(value, scrollBar.Value); 274Assert.Equal(value, scrollBar.Value); 285Assert.Equal(value, scrollBar.Value); 289Assert.Equal(value, scrollBar.Value); 300Assert.Equal(value, scrollBar.Value); 304Assert.Equal(value, scrollBar.Value); 315Assert.Equal(value, scrollBar.Value); 319Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (12)
217Assert.Equal(50, scrollBar.Value); 221Assert.Equal(49, scrollBar.Value); 225Assert.Equal(48, scrollBar.Value); 235Assert.Equal(50, scrollBar.Value); 239Assert.Equal(51, scrollBar.Value); 243Assert.Equal(52, scrollBar.Value); 257Assert.Equal(value, scrollBar.Value); 261Assert.Equal(value, scrollBar.Value); 272Assert.Equal(value, scrollBar.Value); 276Assert.Equal(value, scrollBar.Value); 287Assert.Equal(value, scrollBar.Value); 291Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (14)
217Assert.Equal(50, scrollBar.Value); 221Assert.Equal(48, scrollBar.Value); 225Assert.Equal(46, scrollBar.Value); 235Assert.Equal(50, scrollBar.Value); 239Assert.Equal(52, scrollBar.Value); 243Assert.Equal(54, scrollBar.Value); 257Assert.Equal(value, scrollBar.Value); 261Assert.Equal(value, scrollBar.Value); 272Assert.Equal(value, scrollBar.Value); 276Assert.Equal(value, scrollBar.Value); 287Assert.Equal(value, scrollBar.Value); 291Assert.Equal(value, scrollBar.Value); 302Assert.Equal(value, scrollBar.Value); 306Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
172Assert.Equal(expected, (double)scrollBar.Value);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (9)
209Assert.Equal(50, scrollBar.Value); 213Assert.Equal(49, scrollBar.Value); 217Assert.Equal(48, scrollBar.Value); 231Assert.Equal(value, scrollBar.Value); 235Assert.Equal(value, scrollBar.Value); 246Assert.Equal(value, scrollBar.Value); 250Assert.Equal(value, scrollBar.Value); 261Assert.Equal(value, scrollBar.Value); 265Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (11)
232Assert.Equal(50, scrollBar.Value); 236Assert.Equal(48, scrollBar.Value); 240Assert.Equal(46, scrollBar.Value); 254Assert.Equal(value, scrollBar.Value); 258Assert.Equal(value, scrollBar.Value); 269Assert.Equal(value, scrollBar.Value); 273Assert.Equal(value, scrollBar.Value); 284Assert.Equal(value, scrollBar.Value); 288Assert.Equal(value, scrollBar.Value); 299Assert.Equal(value, scrollBar.Value); 303Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (9)
219Assert.Equal(50, scrollBar.Value); 223Assert.Equal(51, scrollBar.Value); 227Assert.Equal(52, scrollBar.Value); 241Assert.Equal(value, scrollBar.Value); 245Assert.Equal(value, scrollBar.Value); 256Assert.Equal(value, scrollBar.Value); 260Assert.Equal(value, scrollBar.Value); 271Assert.Equal(value, scrollBar.Value); 275Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (11)
219Assert.Equal(50, scrollBar.Value); 223Assert.Equal(52, scrollBar.Value); 227Assert.Equal(54, scrollBar.Value); 241Assert.Equal(value, scrollBar.Value); 245Assert.Equal(value, scrollBar.Value); 256Assert.Equal(value, scrollBar.Value); 260Assert.Equal(value, scrollBar.Value); 271Assert.Equal(value, scrollBar.Value); 275Assert.Equal(value, scrollBar.Value); 286Assert.Equal(value, scrollBar.Value); 290Assert.Equal(value, scrollBar.Value);
System\Windows\Forms\HScrollBarTests.cs (1)
113Assert.Equal(0, control.Value);
System\Windows\Forms\ScrollBarTests.cs (30)
101Assert.Equal(0, control.Value); 839Assert.Equal(0, control.Value); 848Assert.Equal(0, control.Value); 873Assert.Equal(0, control.Value); 895Assert.Equal(0, control.Value); 936Assert.Equal(0, control.Value); 958Assert.Equal(0, control.Value); 989Assert.Equal(5, control.Value); 1004Assert.Equal(-1, control.Value); 1023Assert.Equal(5, control.Value); 1032Assert.Equal(5, control.Value); 1059Assert.Equal(5, control.Value); 1081Assert.Equal(5, control.Value); 1122Assert.Equal(5, control.Value); 1144Assert.Equal(5, control.Value); 1174Assert.Equal(12, control.Value); 1569Assert.Equal(value, control.Value); 1578Assert.Equal(value, control.Value); 1604Assert.Equal(value, control.Value); 1626Assert.Equal(value, control.Value); 1668Assert.Equal(value, control.Value); 1690Assert.Equal(value, control.Value); 1724Assert.Equal(1, control.Value); 1729Assert.Equal(1, control.Value); 1734Assert.Equal(2, control.Value); 1740Assert.Equal(1, control.Value); 1752string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.Value), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.Maximum)}'")).Message; 1754Assert.Equal(0, control.Value); 2492Assert.Equal(expectedValue, control.Value); 2853Assert.Equal(expectedValue, control.Value);
System\Windows\Forms\VScrollBarTests.cs (1)
112Assert.Equal(0, control.Value);
WinFormsControlsTest (2)
ScrollBars.cs (2)
37lblHValue.Text = $"Value: {hScrollBar.Value}"; 38lblVValue.Text = $"Value: {vScrollBar.Value}";