Returns the control's optimal height.
Get
| C# | int Height = object.OptimalHeight; |
| VB.NET | Height = object.OptimalHeight As Integer |
| C++ | int Height = object->OptimalHeight; int Height = object->GetOptimalHeight(); |
| C | HRESULT object->get_OptimalHeight(int* Height); |
| VB | Height = object.OptimalHeight As Integer |
object
Height
Returns the control's optimal height in pixels.
The OptimalHeight property returns the control's optimal height.
The optimal height returned allows all text and picture components to be displayed without being clipped.
The OptimalWidth property returns the control's optimal width.
The AutoSize property can be used to automatically resize the control based on its contents.
See Also SftButton Object | Object Hierarchy