42 references to PreferredHeight
System.Windows.Forms (7)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
515int height = PreferredHeight;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
768int 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)
48_sub.Bottom.Should().Be(_sub.PreferredHeight); 49_sub.Bounds.Should().Be(new Rectangle(0, 0, 120, _sub.PreferredHeight)); 60_sub.PreferredSize.Should().Be(new Size(16, _sub.PreferredHeight)); 67_sub.PreferredSize.Should().Be(new Size(20, _sub.PreferredHeight)); 84_sub.DefaultSize.Should().Be(new Size(120, _sub.PreferredHeight)); 102_sub.Height.Should().Be(_sub.PreferredHeight); 123_sub.PreferredHeight.Should().Be(Control.DefaultFont.Height + 7); 136_sub.Size.Should().Be(new Size(120, _sub.PreferredHeight)); 176createParams.Height.Should().Be(_sub.PreferredHeight);
System\Windows\Forms\UpDownBaseTests.cs (26)
35Assert.Equal(control.PreferredHeight, control.Bottom); 36Assert.Equal(new Rectangle(0, 0, 120, control.PreferredHeight), control.Bounds); 47Assert.Equal(new Size(122, control.PreferredHeight), control.PreferredSize); 54Assert.Equal(new Size(123, control.PreferredHeight), control.PreferredSize); 71Assert.Equal(new Size(120, control.PreferredHeight), control.DefaultSize); 89Assert.Equal(control.PreferredHeight, control.Height); 108Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight); 119Assert.Equal(new Size(120, control.PreferredHeight), control.Size); 159Assert.Equal(control.PreferredHeight, createParams.Height); 740Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 747Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 783Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 793Assert.Equal(expectedPreferredSize.Height, control.PreferredHeight); 1114Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1121Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1158Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1165Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.Size); 1594Assert.Equal(new Size(expectedWidth, control.PreferredHeight), preferredSize); 1598Assert.Equal(new Size(expectedWidth, control.PreferredHeight), preferredSize); 1614Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1618Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1657Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1661Assert.Equal(new Size(expectedWidth, control.PreferredHeight), control.GetPreferredSize(proposedSize)); 1788int preferredHeight = control.PreferredHeight; 2525int preferredHeight = control.PreferredHeight; 2684int preferredHeight = control.PreferredHeight;