35 references to PreferredHeight
System.Windows.Forms (5)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
486
return new Size(100,
PreferredHeight
);
1183
Height =
PreferredHeight
;
1194
Height = Math.Max(saveHeight,
PreferredHeight
+ 2); // 2 = fudge factor
1772
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)
40
Assert.Equal(control.
PreferredHeight
, control.Bottom);
41
Assert.Equal(new Rectangle(0, 0, 100, control.
PreferredHeight
), control.Bounds);
49
Assert.Equal(new Size(96, control.
PreferredHeight
- 4), control.ClientSize);
50
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.ClientRectangle);
64
Assert.Equal(new Size(100, control.
PreferredHeight
), control.DefaultSize);
66
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.DisplayRectangle);
82
Assert.Equal(control.
PreferredHeight
, control.Height);
102
Assert.True(control.
PreferredHeight
> 0);
118
Assert.Equal(new Size(100, control.
PreferredHeight
), control.Size);
144
Assert.Equal(control.
PreferredHeight
, createParams.Height);
System\Windows\Forms\RichTextBoxTests.cs (1)
109
Assert.Equal(control.PreferredSize.Height, control.
PreferredHeight
);
TextBoxBaseTests.cs (9)
29
Assert.Equal(control.
PreferredHeight
, createParams.Height);
55
Assert.Equal(control.
PreferredHeight
, createParams.Height);
81
Assert.Equal(control.
PreferredHeight
, createParams.Height);
136
Assert.Equal(control.
PreferredHeight
, createParams.Height);
2199
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2205
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2224
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2233
Assert.Equal(s_preferredHeight, control.
PreferredHeight
);
2292
Assert.Equal(expected, control.
PreferredHeight
);
TextBoxTests.cs (10)
39
Assert.Equal(control.
PreferredHeight
, control.Bottom);
40
Assert.Equal(new Rectangle(0, 0, 100, control.
PreferredHeight
), control.Bounds);
48
Assert.Equal(new Size(96, control.
PreferredHeight
- 4), control.ClientSize);
49
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.ClientRectangle);
63
Assert.Equal(new Size(100, control.
PreferredHeight
), control.DefaultSize);
65
Assert.Equal(new Rectangle(0, 0, 96, control.
PreferredHeight
- 4), control.DisplayRectangle);
76
Assert.Equal(control.
PreferredHeight
, control.Height);
96
Assert.True(control.
PreferredHeight
> 0);
111
Assert.Equal(new Size(100, control.
PreferredHeight
), control.Size);
137
Assert.Equal(control.
PreferredHeight
, createParams.Height);