8 writes to Maximum
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
119
ProgressBar.
Maximum
= value;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ProgressBarTests.cs (7)
914
Maximum
= value
922
control.
Maximum
= value;
937
Maximum
= value
952
Maximum
= value
972
control.
Maximum
= value;
982
control.
Maximum
= value;
996
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
Maximum
= -1);
21 references to Maximum
System.Windows.Forms (4)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
478
throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, nameof(Minimum), nameof(
Maximum
)));
675
=> $"{base.ToString()}, Minimum: {Minimum}, Maximum: {
Maximum
}, Value: {_value}";
System\Windows\Forms\Controls\ProgressBar\ProgressBar.ProgressBarAccessibleObject.cs (1)
50
internal override double Maximum => this.TryGetOwnerAs(out ProgressBar? owner) ? owner.
Maximum
: 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
115
return ProgressBar.
Maximum
;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ProgressBarTests.cs (17)
75
Assert.Equal(100, control.
Maximum
);
917
Assert.Equal(value, control.
Maximum
);
924
Assert.Equal(value, control.
Maximum
);
940
Assert.Equal(value, control.
Maximum
);
955
Assert.Equal(value, control.
Maximum
);
974
Assert.Equal(value, control.
Maximum
);
984
Assert.Equal(value, control.
Maximum
);
1015
Assert.Equal(100, control.
Maximum
);
1022
Assert.Equal(100, control.
Maximum
);
1037
Assert.Equal(value, control.
Maximum
);
1051
Assert.Equal(100, control.
Maximum
);
1073
Assert.Equal(100, control.
Maximum
);
1083
Assert.Equal(100, control.
Maximum
);
1701
Assert.Equal(100, control.
Maximum
);
1708
Assert.Equal(100, control.
Maximum
);
1731
Assert.Equal(100, control.
Maximum
);
1741
Assert.Equal(100, control.
Maximum
);