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