SftButton/OCX 2.5

SftButton.OptimalHeight Property

Softel vdm, Inc.

Returns the control's optimal height.

Syntax       

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);

Delphi

Height := object.OptimalHeight   : Integer;

object

A SftButton object.

Height

Returns the control's optimal height in pixels.

Comments

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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com