SftBox/OCX 4.5

SftBoxItems.Selection Property

Softel vdm, Inc.

Defines the currently selected item.

Syntax       

Get

VB.NET

ItemIndex = object.Selection  As Integer

VB

ItemIndex = object.Selection  As Long

C#.NET

int ItemIndex = object.Selection;

VC++

long ItemIndex = object->Selection;
long ItemIndex = object->GetSelection();

C

HRESULT object->get_Selection(long* ItemIndex);

Delphi

ItemIndex := object.Selection   : Integer;

Put

VB.NET

object.Selection = ItemIndex  As Integer

VB

object.Selection = ItemIndex  As Long

C#.NET

int object.Selection = ItemIndex;

VC++

long object->Selection = ItemIndex;
void object->PutSelection(long ItemIndex);

C

HRESULT object->put_Selection(long ItemIndex);

Delphi

object.Selection := ItemIndex   : Integer;

object

A SftBoxItems object.

ItemIndex

The zero-based index of the selected item. If no item is selected this value is -1.

Comments

The Selection property defines the currently selected item.

The SelectionChange event notifies an application when the selection is changed.


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