42 references to PreferredHeight
System.Windows.Forms (7)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
511int height = PreferredHeight;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
764int height = PreferredHeight;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (5)
62_upDownButtons.Size = new Size(_defaultButtonsWidth, PreferredHeight); 246protected override Size DefaultSize => new(DefaultControlWidth, PreferredHeight); 455return base.ApplyBoundsConstraints(suggestedX, suggestedY, proposedWidth, PreferredHeight); 641Height = PreferredHeight; 806Height = PreferredHeight;
System.Windows.Forms.Tests (35)
System\Windows\Forms\DomainUpDownTests.cs (9)
50_sub.Bottom.Should().Be(_sub.PreferredHeight); 51_sub.Bounds.Should().Be(new Rectangle(0, 0, 120, _sub.PreferredHeight)); 62_sub.PreferredSize.Should().Be(new Size(16, _sub.PreferredHeight)); 69_sub.PreferredSize.Should().Be(new Size(20, _sub.PreferredHeight)); 86_sub.DefaultSize.Should().Be(new Size(120, _sub.PreferredHeight)); 104_sub.Height.Should().Be(_sub.PreferredHeight); 125_sub.PreferredHeight.Should().Be(Control.DefaultFont.Height + 7); 138_sub.Size.Should().Be(new Size(120, _sub.PreferredHeight)); 178createParams.Height.Should().Be(_sub.PreferredHeight);
System\Windows\Forms\UpDownBaseTests.cs (26)
37Assert.Equal(control.PreferredHeight, control.Bottom); 38Assert.Equal(new Rectangle(0, 0, 120, control.PreferredHeight), control.Bounds); 49Assert.Equal(new Size(122, control.PreferredHeight), control.PreferredSize); 56Assert.Equal(new Size(123, control.PreferredHeight), control.PreferredSize); 73Assert.Equal(new Size(120, control.PreferredHeight), control.DefaultSize); 91Assert.Equal(control.PreferredHeight, control.Height); 110Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight); 121Assert.Equal(new Size(120, control.PreferredHeight), control.Size); 161Assert.Equal(control.PreferredHeight, createParams.Height); 742Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 749Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 785Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 795Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 1116Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1123Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1160Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1167Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1596Assert.Equal(new Size(expectedWidth, control.PreferredHeight), preferredSize); 1600Assert.Equal(new Size(expectedWidth, control.PreferredHeight), preferredSize); 1616Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1620Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1659Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1663Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1790int preferredHeight = control.PreferredHeight; 2527int preferredHeight = control.PreferredHeight; 2686int preferredHeight = control.PreferredHeight;