Returns the height in pixels the control needs for its contents.
| C# | int Height = object.PreferredHeight; |
| VB.NET | Height = object.PreferredHeight As Integer |
| C++ | long Height = object->PreferredHeight; long Height = object->GetPreferredHeight(); |
| C | HRESULT object->get_PreferredHeight(long* Height); |
object
Height
Returns the height in pixels the control needs for its contents.
The PreferredHeight property returns the height in pixels a date field control needs for its font (Font), border (BorderStyle) and the DPI of its monitor (DPI). p A field that sizes itself (AutoSize, the default) keeps this height.
See Also SftDate Object | Object Hierarchy