16 writes to Maximum
System.Windows.Forms.Tests (14)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
481Maximum = maximum,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (1)
378Maximum = maximum,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (1)
379Maximum = maximum,
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (1)
241Maximum = maximum,
TrackBarTests.cs (10)
777Maximum = 11 1046Maximum = value 1056control.Maximum = value; 1081control.Maximum = value; 1096control.Maximum = value; 1118Maximum = 5 1144control.Maximum = 5; 1164Maximum = -1 1255Maximum = 8, 1272Maximum = 8
WinFormsControlsTest (2)
TrackBars.cs (2)
14trackBar1.Maximum = 100; 86trackBar1.Maximum = (int)Math.Min(numericMaximum.Value, int.MaxValue);
33 references to Maximum
System.Windows.Forms (10)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (7)
621throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'")); 826_value = Minimum + Maximum - _value; 832_value = Minimum + Maximum - _value; 959Value = Math.Min(absScrollBands + Value, Maximum); 1113reflectedValue = Minimum + Maximum - _value; 1119reflectedValue = Minimum + Maximum - _value; 1165public override string ToString() => $"{base.ToString()}, Minimum: {Minimum}, Maximum: {Maximum}, Value: {_value}";
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
42? owner.Maximum != owner.Value
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (2)
45if (owner.Minimum == owner.Maximum) 52: owner.Maximum != owner.Value;
System.Windows.Forms.Tests (22)
TrackBarTests.cs (22)
78Assert.Equal(10, control.Maximum); 1048Assert.Equal(value, control.Maximum); 1057Assert.Equal(value, control.Maximum); 1082Assert.Equal(value, control.Maximum); 1097Assert.Equal(value, control.Maximum); 1120Assert.Equal(5, control.Maximum); 1145Assert.Equal(5, control.Maximum); 1166Assert.Equal(-1, control.Maximum); 1185Assert.Equal(10, control.Maximum); 1194Assert.Equal(10, control.Maximum); 1221Assert.Equal(10, control.Maximum); 1236Assert.Equal(10, control.Maximum); 1258Assert.Equal(12, control.Maximum); 1283Assert.Equal(12, control.Maximum); 1992Assert.Equal(10, control.Maximum); 2001Assert.Equal(10, control.Maximum); 2023Assert.Equal(10, control.Maximum); 2032Assert.Equal(10, control.Maximum); 2127Assert.Equal(10, control.Maximum); 2140Assert.Equal(10, control.Maximum); 3061Assert.Equal(expectedMaximum, control.Maximum); 3097Assert.Equal(expectedMaximum, control.Maximum);
WinFormsControlsTest (1)
TrackBars.cs (1)
16numericMaximum.Value = trackBar1.Maximum;