Returns the control's optimal height.
Get
| VB.NET | Height = object.OptimalHeight As Integer |
| VB | Height = object.OptimalHeight As Integer |
| C#.NET | int Height = object.OptimalHeight; |
| VC++ | int Height = object->OptimalHeight; int Height = object->GetOptimalHeight(); |
| C | HRESULT object->get_OptimalHeight(int* Height); |
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