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