71 writes to Value
System.Windows.Forms (10)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (8)
184Value = Constrain(_currentValue); 211Value = Constrain(_currentValue); 403Value = newValue; 412Value = Constrain(_currentValue); 537Value = Constrain(Convert.ToDecimal(Convert.ToInt32(Text, 16))); 541Value = Constrain(decimal.Parse(Text, CultureInfo.CurrentCulture)); 595Value = DefaultValue; 692Value = newValue;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
1066_pageCounter.Value = _previewControl.StartPage + 1; 1195_pageCounter.Value = _previewControl.StartPage + 1;
System.Windows.Forms.Design (23)
System\Windows\Forms\Design\FormatControl.cs (1)
232decimalPlacesUpDown.Value = 2;
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (7)
78_owner.decimalPlacesUpDown.Value = 0; 82_owner.decimalPlacesUpDown.Value = 1; 86_owner.decimalPlacesUpDown.Value = 2; 90_owner.decimalPlacesUpDown.Value = 3; 94_owner.decimalPlacesUpDown.Value = 4; 98_owner.decimalPlacesUpDown.Value = 5; 102_owner.decimalPlacesUpDown.Value = 6;
System\Windows\Forms\Design\FormatControl.Designer.cs (1)
141decimalPlacesUpDown.Value = new decimal(new int[] {
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (7)
77_owner.decimalPlacesUpDown.Value = 0; 81_owner.decimalPlacesUpDown.Value = 1; 85_owner.decimalPlacesUpDown.Value = 2; 89_owner.decimalPlacesUpDown.Value = 3; 93_owner.decimalPlacesUpDown.Value = 4; 97_owner.decimalPlacesUpDown.Value = 5; 101_owner.decimalPlacesUpDown.Value = 6;
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (7)
78_owner.decimalPlacesUpDown.Value = 0; 82_owner.decimalPlacesUpDown.Value = 1; 86_owner.decimalPlacesUpDown.Value = 2; 90_owner.decimalPlacesUpDown.Value = 3; 94_owner.decimalPlacesUpDown.Value = 4; 98_owner.decimalPlacesUpDown.Value = 5; 102_owner.decimalPlacesUpDown.Value = 6;
System.Windows.Forms.Tests (24)
NumericUpDownTests.cs (22)
522subUpDown.Value = 10; 533subUpDown.Value = 10; 543subUpDown.Value = 10; 565upDown.Value = 50; 629subUpDown.Value = 10; 634subUpDown.Value = 20; 650using NumericUpDown upDown = new() { Value = 0, Minimum = 0, Increment = 1 }; 658using NumericUpDown upDown = new() { Value = 10, Increment = 1, Text = "Not a number" }; 666using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 677Value = 10 691Value = 15, 706Value = 11 720Value = 11, 743using NumericUpDown upDown = new() { Value = 100, Maximum = 100, Increment = 1 }; 751using NumericUpDown upDown = new() { Value = 10, Increment = 1, Text = "Not a number" }; 759using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 767using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 775using NumericUpDown upDown = new() { Value = 99, Maximum = 100 }; 783using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 791using SubNumericUpDown upDown = new() { Value = 100, Maximum = 100, PublicUserEdit = true }; 801upDown.Value = decimal.MaxValue; 811upDown.Value = decimal.MaxValue - 1;
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
56numericUpDown.Value = testValue; 73numericUpDown.Value = testValue;
WinFormsControlsTest (14)
ComboBoxesWithScrollBars.cs (6)
26changeDDH_UpDown1.Value = comboBox1.DropDownHeight; 27changeCBHeight_UpDown2.Value = comboBox2.Size.Height; 28changeDDH_UpDown3.Value = comboBox3.DropDownHeight; 31maxDropDownItemsUpDown1.Value = comboBox1.MaxDropDownItems; 32maxDropDownItemsUpDown2.Value = comboBox2.MaxDropDownItems; 33maxDropDownItemsUpDown3.Value = comboBox3.MaxDropDownItems;
DataGridViewTest.Designer.cs (1)
175this.numericUpDown1.Value = new decimal(new int[] {
ScrollBars.Designer.cs (1)
79this.numericMaximum.Value = new decimal(new int[] {
TrackBars.cs (3)
15numericMinimum.Value = trackBar1.Minimum; 16numericMaximum.Value = trackBar1.Maximum; 17numericFrequency.Value = trackBar1.TickFrequency;
TrackBars.Designer.cs (3)
155this.numericMinimum.Value = new decimal(new int[] { 174this.numericMaximum.Value = new decimal(new int[] { 193this.numericFrequency.Value = new decimal(new int[] {
48 references to Value
System.Windows.Forms (7)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (6)
13[DefaultProperty(nameof(Value))] 15[DefaultBindingProperty(nameof(Value))] 316throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'")); 331/// Occurs when the <see cref="Value"/> property has been changed in some way. 624/// Indicates whether the <see cref="Value"/> property should be persisted. 628return !Value.Equals(DefaultValue);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1184int pageNum = ((int)_pageCounter.Value) - 1;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (1)
35switch ((int)_owner.decimalPlacesUpDown.Value)
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (1)
35switch ((int)_owner.decimalPlacesUpDown.Value)
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (1)
35switch ((int)_owner.decimalPlacesUpDown.Value)
System.Windows.Forms.Tests (18)
NumericUpDownTests.cs (16)
552upDown.Value.Should().Be(0); 566upDown.Value.Should().Be(50); 652upDown.Value.Should().Be(0); 660upDown.Value.Should().Be(9); 668upDown.Value.Should().Be(19); 682upDown.Value.Should().Be(10); 697subUpDown.Value.Should().Be(subUpDown.Minimum); 711upDown.Value.Should().Be(10); 745upDown.Value.Should().Be(100); 753upDown.Value.Should().Be(11); 761upDown.Value.Should().Be(20); 769upDown.Value.Should().Be(100); 777upDown.Value.Should().Be(100); 785upDown.Value.Should().Be(100); 803upDown.Value.Should().Be(decimal.MaxValue); 814upDown.Value.Should().Be(decimal.MaxValue);
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
63Assert.Equal(testValue, numericUpDown.Value); 80Assert.Equal(expected, numericUpDown.Value);
WinFormsControlsTest (20)
ComboBoxesWithScrollBars.cs (6)
51comboBox1.DropDownHeight = (int)changeDDH_UpDown1.Value; 54changeCBHeight_UpDown2.ValueChanged += (s, e) => comboBox2.Size = new Size(comboBox2.Size.Width, (int)changeCBHeight_UpDown2.Value); 57comboBox3.DropDownHeight = (int)changeDDH_UpDown3.Value; 60maxDropDownItemsUpDown1.ValueChanged += (s, e) => comboBox1.MaxDropDownItems = (int)maxDropDownItemsUpDown1.Value; 61maxDropDownItemsUpDown2.ValueChanged += (s, e) => comboBox2.MaxDropDownItems = (int)maxDropDownItemsUpDown2.Value; 62maxDropDownItemsUpDown3.ValueChanged += (s, e) => comboBox3.MaxDropDownItems = (int)maxDropDownItemsUpDown3.Value;
DataGridViewTest.cs (1)
93Font = new Font("Tahoma", (float)numericUpDown1.Value, FontStyle.Regular);
ScrollBars.cs (6)
17hScrollBar.Maximum = decimal.ToInt32(numericMaximum.Value); 18vScrollBar.Maximum = decimal.ToInt32(numericMaximum.Value); 19numericMinimum.Maximum = numericMaximum.Value; 25hScrollBar.Minimum = decimal.ToInt32(numericMinimum.Value); 26vScrollBar.Minimum = decimal.ToInt32(numericMinimum.Value); 27numericMaximum.Minimum = numericMinimum.Value;
TrackBars.cs (7)
73trackBar1.Minimum = (int)Math.Max(numericMinimum.Value, int.MinValue); 74numericMaximum.Minimum = numericMinimum.Value; 75numericFrequency.Maximum = (int)Math.Min(numericMaximum.Value - numericMaximum.Minimum, int.MaxValue); 86trackBar1.Maximum = (int)Math.Min(numericMaximum.Value, int.MaxValue); 87numericMinimum.Maximum = numericMaximum.Value; 88numericFrequency.Maximum = (int)Math.Min(numericMaximum.Value - numericMaximum.Minimum, int.MaxValue); 99trackBar1.TickFrequency = (int)numericFrequency.Value;