SftBox/OCX 4.5

SftBoxDropDown.HeightItems Property

Softel vdm, Inc.

Defines the drop down portion's height in number of items.

Syntax       

Get

VB.NET

h = object.HeightItems  As Integer

VB

h = object.HeightItems  As Long

C#.NET

int h = object.HeightItems;

VC++

long h = object->HeightItems;
long h = object->GetHeightItems();

C

HRESULT object->get_HeightItems(long* h);

Delphi

h := object.HeightItems   : Integer;

Put

VB.NET

object.HeightItems = h  As Integer

VB

object.HeightItems = h  As Long

C#.NET

int object.HeightItems = h;

VC++

long object->HeightItems = h;
void object->PutHeightItems(long h);

C

HRESULT object->put_HeightItems(long h);

Delphi

object.HeightItems := h   : Integer;

object

A SftBoxDropDown object.

h

Defines the drop down portion's height in number of items.

Comments

The HeightItems property defines the drop down portion's height in number of items.

The defined height is considered a maximum value. The height of the drop down portion may be smaller than defined if fewer items are available.

The actual height of the drop down portion can be found using the DropDown.GetPosition method.

The height defined using this property is used to determine the height of the drop down portion as it becomes visible. Once visible, it is no longer resized. This means that in a variable height combo box more than the defined number of items may become visible by scrolling vertically.

The DropDown.Height property can be used to define the height of the drop down portion. If the HeightItems property is set, the Height property is set to 0.

This property cannot be used with a simple combo box.


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