29 writes to Value
System.Windows.Forms (29)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2698
_horizScrollBar.
Value
= value;
4108
_vertScrollBar.
Value
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
4543
_vertScrollBar.
Value
= ComputeHeightOfScrolledOffRows();
10336
_horizScrollBar.
Value
= 0;
10357
_vertScrollBar.
Value
= ComputeHeightOfScrolledOffRows();
10379
_vertScrollBar.
Value
= 0;
14350
_horizScrollBar.
Value
= _horizontalOffset;
17192
_horizScrollBar.
Value
= _horizontalOffset;
26323
_vertScrollBar.
Value
= VerticalScrollingOffset;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3668
ScrollBar.
Value
= e.NewValue;
4585
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)
244
Value
= value;
715
Value
= se.NewValue;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
177
owner.
Value
= (int)newValue;
49 references to Value
System.Windows.Forms (48)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
4538
int oldVertScrollBarValue = _vertScrollBar.
Value
;
4545
VerticalScrollingOffset = _vertScrollBar.
Value
;
4557
Debug.Assert(VerticalScrollingOffset == _vertScrollBar.
Value
);
10368
VerticalScrollingOffset = _vertScrollBar.
Value
;
16562
while (_vertScrollBar.
Value
!= _vertScrollBar.Minimum && absScrollBands > 0)
16568
if (_vertScrollBar.
Value
== _vertScrollBar.Minimum)
16583
&& _vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16594
if (_vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16620
while (_horizScrollBar.
Value
!= extremeScrollBarValue && absScrollBands > 0)
16626
if (_horizScrollBar.
Value
== extremeScrollBarValue)
17172
if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.
Value
)
28429
if (_vertScrollBar.
Value
+ Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28441
if (_vertScrollBar.
Value
!= _vertScrollBar.Minimum)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
1791
int pos = ScrollBar.
Value
;
2091
if (newValue == ScrollBar.
Value
3251
if (_scrollBar!.
Value
<= _scrollBar.Minimum)
3262
if (_scrollBar!.
Value
> (_scrollBar.Maximum - _visibleRows + 1))
3657
e.NewValue = ScrollBar.
Value
;
3673
SelectGridEntry(oldGridEntry, pageIn: ScrollBar.
Value
== TotalProperties);
4582
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
))]
194
/// Gets or sets a value to be added or subtracted to the <see cref="
Value
"/>
284
/// Gets or sets the value to be added or subtracted to the <see cref="
Value
"/>
356
throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(
Value
), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
457
/// Occurs when the <see cref="
Value
"/> property has
587
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
;