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