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