8 writes to Maximum
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
119ProgressBar.Maximum = value;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ProgressBarTests.cs (7)
914Maximum = value 922control.Maximum = value; 937Maximum = value 952Maximum = value 972control.Maximum = value; 982control.Maximum = value; 996Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Maximum = -1);
21 references to Maximum
System.Windows.Forms (4)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
478throw 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)
50internal override double Maximum => this.TryGetOwnerAs(out ProgressBar? owner) ? owner.Maximum : 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
115return ProgressBar.Maximum;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ProgressBarTests.cs (17)
75Assert.Equal(100, control.Maximum); 917Assert.Equal(value, control.Maximum); 924Assert.Equal(value, control.Maximum); 940Assert.Equal(value, control.Maximum); 955Assert.Equal(value, control.Maximum); 974Assert.Equal(value, control.Maximum); 984Assert.Equal(value, control.Maximum); 1015Assert.Equal(100, control.Maximum); 1022Assert.Equal(100, control.Maximum); 1037Assert.Equal(value, control.Maximum); 1051Assert.Equal(100, control.Maximum); 1073Assert.Equal(100, control.Maximum); 1083Assert.Equal(100, control.Maximum); 1701Assert.Equal(100, control.Maximum); 1708Assert.Equal(100, control.Maximum); 1731Assert.Equal(100, control.Maximum); 1741Assert.Equal(100, control.Maximum);