35 references to PreferredHeight
System.Windows.Forms (5)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
486
return new Size(100,
PreferredHeight
);
1191
Height =
PreferredHeight
;
1202
Height = Math.Max(saveHeight,
PreferredHeight
+ 2); // 2 = fudge factor
1778
height =
PreferredHeight
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
93
return new Size(bounds.Width, TextBox.
PreferredHeight
);
System.Windows.Forms.Tests (30)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (10)
38
Assert.Equal(control.
PreferredHeight
, control.Bottom);
39
Assert.Equal(new Rectangle(0, 0, 100, control.
PreferredHeight
), control.Bounds);
47
Assert.Equal(new Size(96, control.
PreferredHeight
- 4), control.ClientSize);
48
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.ClientRectangle);
62
Assert.Equal(new Size(100, control.
PreferredHeight
), control.DefaultSize);
64
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.DisplayRectangle);
80
Assert.Equal(control.
PreferredHeight
, control.Height);
100
Assert.True(control.
PreferredHeight
> 0);
116
Assert.Equal(new Size(100, control.
PreferredHeight
), control.Size);
142
Assert.Equal(control.
PreferredHeight
, createParams.Height);
System\Windows\Forms\RichTextBoxTests.cs (1)
107
Assert.Equal(control.PreferredSize.Height, control.
PreferredHeight
);
TextBoxBaseTests.cs (9)
27
Assert.Equal(control.
PreferredHeight
, createParams.Height);
53
Assert.Equal(control.
PreferredHeight
, createParams.Height);
79
Assert.Equal(control.
PreferredHeight
, createParams.Height);
134
Assert.Equal(control.
PreferredHeight
, createParams.Height);
2197
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2203
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2222
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2231
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2290
Assert.Equal(expected, control.
PreferredHeight
);
TextBoxTests.cs (10)
37
Assert.Equal(control.
PreferredHeight
, control.Bottom);
38
Assert.Equal(new Rectangle(0, 0, 100, control.
PreferredHeight
), control.Bounds);
46
Assert.Equal(new Size(96, control.
PreferredHeight
- 4), control.ClientSize);
47
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.ClientRectangle);
61
Assert.Equal(new Size(100, control.
PreferredHeight
), control.DefaultSize);
63
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.DisplayRectangle);
74
Assert.Equal(control.
PreferredHeight
, control.Height);
94
Assert.True(control.
PreferredHeight
> 0);
109
Assert.Equal(new Size(100, control.
PreferredHeight
), control.Size);
135
Assert.Equal(control.
PreferredHeight
, createParams.Height);