71 writes to Value
System.Windows.Forms (10)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (8)
188Value = Constrain(_currentValue); 215Value = Constrain(_currentValue); 407Value = newValue; 416Value = Constrain(_currentValue); 541Value = Constrain(Convert.ToDecimal(Convert.ToInt32(Text, 16))); 545Value = Constrain(decimal.Parse(Text, CultureInfo.CurrentCulture)); 599Value = DefaultValue; 696Value = 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)
520subUpDown.Value = 10; 531subUpDown.Value = 10; 541subUpDown.Value = 10; 563upDown.Value = 50; 627subUpDown.Value = 10; 632subUpDown.Value = 20; 648using NumericUpDown upDown = new() { Value = 0, Minimum = 0, Increment = 1 }; 656using NumericUpDown upDown = new() { Value = 10, Increment = 1, Text = "Not a number" }; 664using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 675Value = 10 689Value = 15, 704Value = 11 718Value = 11, 741using NumericUpDown upDown = new() { Value = 100, Maximum = 100, Increment = 1 }; 749using NumericUpDown upDown = new() { Value = 10, Increment = 1, Text = "Not a number" }; 757using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 765using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 773using NumericUpDown upDown = new() { Value = 99, Maximum = 100 }; 781using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 789using SubNumericUpDown upDown = new() { Value = 100, Maximum = 100, PublicUserEdit = true }; 799upDown.Value = decimal.MaxValue; 809upDown.Value = decimal.MaxValue - 1;
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
54numericUpDown.Value = testValue; 71numericUpDown.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))] 320throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'")); 335/// Occurs when the <see cref="Value"/> property has been changed in some way. 628/// Indicates whether the <see cref="Value"/> property should be persisted. 632return !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)
550upDown.Value.Should().Be(0); 564upDown.Value.Should().Be(50); 650upDown.Value.Should().Be(0); 658upDown.Value.Should().Be(9); 666upDown.Value.Should().Be(19); 680upDown.Value.Should().Be(10); 695subUpDown.Value.Should().Be(subUpDown.Minimum); 709upDown.Value.Should().Be(10); 743upDown.Value.Should().Be(100); 751upDown.Value.Should().Be(11); 759upDown.Value.Should().Be(20); 767upDown.Value.Should().Be(100); 775upDown.Value.Should().Be(100); 783upDown.Value.Should().Be(100); 801upDown.Value.Should().Be(decimal.MaxValue); 812upDown.Value.Should().Be(decimal.MaxValue);
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
61Assert.Equal(testValue, numericUpDown.Value); 78Assert.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;