36 writes to Value
System.Windows.Forms (4)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (4)
743
Value
= _minimum;
748
Value
= _maximum;
959
Value
= Math.Min(absScrollBands + Value, Maximum);
965
Value
= Math.Max(Value - absScrollBands, Minimum);
System.Windows.Forms.Tests (32)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (5)
19
Value
= 5,
45
Value
= 5,
110
Value
= 5
129
Value
= 5
480
Value
= value,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (1)
377
Value
= value,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (1)
378
Value
= value,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (1)
240
Value
= value,
TrackBarTests.cs (24)
805
Value
= 5,
819
Value
= 5
1116
Value
= 10,
1133
Value
= 10,
1182
Value
= 5,
1210
Value
= 5
1254
Value
= 10,
1271
Value
= 10,
1990
Value
= value
2000
control.
Value
= value;
2022
control.
Value
= value;
2031
control.
Value
= value;
2126
control.
Value
= value;
2139
control.
Value
= value;
2166
control.
Value
= 1;
2171
control.
Value
= 1;
2176
control.
Value
= 2;
2182
control.
Value
= 1;
2193
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
Value
= value);
2226
control.
Value
= value;
2251
control.
Value
= value;
3056
Value
= 5
3085
Value
= 5
3183
Value
= 10
72 references to Value
System.Windows.Forms (13)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (9)
20
[DefaultProperty(nameof(
Value
))]
22
[DefaultBindingProperty(nameof(
Value
))]
621
throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(
Value
), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
741
if (
Value
< _minimum)
746
if (
Value
> _maximum)
959
Value = Math.Min(absScrollBands +
Value
, Maximum);
965
Value = Math.Max(
Value
- absScrollBands, Minimum);
970
if (e.Delta !=
Value
)
1183
if (_value !=
Value
)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (2)
42
? owner.Maximum != owner.
Value
43
: owner.Minimum != owner.
Value
;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (2)
51
? owner.Minimum != owner.
Value
52
: owner.Maximum != owner.
Value
;
System.Windows.Forms.Tests (58)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (4)
93
Assert.Equal(expected, ownerControl.
Value
);
99
Assert.Equal(expected, ownerControl.
Value
);
118
Assert.Equal(5, ownerControl.
Value
);
136
Assert.Equal(5, ownerControl.
Value
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (10)
258
Assert.Equal(5, trackBar.
Value
);
262
Assert.Equal(8, trackBar.
Value
);
266
Assert.Equal(10, trackBar.
Value
);
270
Assert.Equal(10, trackBar.
Value
);
283
Assert.Equal(5, trackBar.
Value
);
287
Assert.Equal(2, trackBar.
Value
);
291
Assert.Equal(0, trackBar.
Value
);
295
Assert.Equal(0, trackBar.
Value
);
306
Assert.Equal(value, trackBar.
Value
);
310
Assert.Equal(value, trackBar.
Value
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (10)
259
Assert.Equal(5, trackBar.
Value
);
263
Assert.Equal(2, trackBar.
Value
);
267
Assert.Equal(0, trackBar.
Value
);
271
Assert.Equal(0, trackBar.
Value
);
284
Assert.Equal(5, trackBar.
Value
);
288
Assert.Equal(8, trackBar.
Value
);
292
Assert.Equal(10, trackBar.
Value
);
296
Assert.Equal(10, trackBar.
Value
);
307
Assert.Equal(value, trackBar.
Value
);
311
Assert.Equal(value, trackBar.
Value
);
TrackBarTests.cs (34)
106
Assert.Equal(0, control.
Value
);
1050
Assert.Equal(0, control.
Value
);
1059
Assert.Equal(0, control.
Value
);
1084
Assert.Equal(0, control.
Value
);
1099
Assert.Equal(0, control.
Value
);
1122
Assert.Equal(5, control.
Value
);
1147
Assert.Equal(5, control.
Value
);
1168
Assert.Equal(-1, control.
Value
);
1187
Assert.Equal(5, control.
Value
);
1196
Assert.Equal(5, control.
Value
);
1223
Assert.Equal(5, control.
Value
);
1238
Assert.Equal(5, control.
Value
);
1260
Assert.Equal(12, control.
Value
);
1285
Assert.Equal(12, control.
Value
);
1994
Assert.Equal(value, control.
Value
);
2003
Assert.Equal(value, control.
Value
);
2025
Assert.Equal(value, control.
Value
);
2034
Assert.Equal(value, control.
Value
);
2129
Assert.Equal(value, control.
Value
);
2142
Assert.Equal(value, control.
Value
);
2167
Assert.Equal(1, control.
Value
);
2172
Assert.Equal(1, control.
Value
);
2177
Assert.Equal(2, control.
Value
);
2183
Assert.Equal(1, control.
Value
);
2194
Assert.Equal(0, control.
Value
);
2227
Assert.Equal(value, control.
Value
);
2230
Assert.Equal(value, control.
Value
);
2235
Assert.Equal(value, control.
Value
);
2252
Assert.Equal(value, control.
Value
);
2255
Assert.Equal(expectedValue, control.
Value
);
2260
Assert.Equal(expectedValue, control.
Value
);
3062
Assert.Equal(expectedValue, control.
Value
);
3098
Assert.Equal(expectedValue, control.
Value
);
3205
Assert.Equal(10, control.
Value
);
WinFormsControlsTest (1)
TrackBars.cs (1)
37
lblTrackBarValue.Text = $"Value {trackBar1.
Value
}";