SftBox/OCX 4.5

SftBoxItem.Level Property

Softel vdm, Inc.

Defines the item's level number (indentation).

Syntax       

Get

VB.NET

Lvl = object.Level  As Short

VB

Lvl = object.Level  As Integer

C#.NET

short Lvl = object.Level;

VC++

short Lvl = object->Level;
short Lvl = object->GetLevel();

C

HRESULT object->get_Level(short* Lvl);

Delphi

Lvl := object.Level   : Smallint;

Put

VB.NET

object.Level = Lvl  As Short

VB

object.Level = Lvl  As Integer

C#.NET

short object.Level = Lvl;

VC++

short object->Level = Lvl;
void object->PutLevel(short Lvl);

C

HRESULT object->put_Level(short Lvl);

Delphi

object.Level := Lvl   : Smallint;

object

A SftBoxItem object.

Lvl

Defines the level (indentation) of the item described by object. Valid levels are between 0 and 255.

Comments

The Level property defines the item's level number (indentation).

When a level is assigned to an item, it is automatically indented and connected to a preceding item on a higher level. Connecting tree lines can be enabled using the Items.TreeLineStyle property.

The Level property determines the "indentation" of an item. By changing an item's level number, its parent relation is automatically adjusted by the control. Using this method, the application does not have to manipulate any parent/child relationships, but can instead treat the entire list of items as a linear list, an array of items.

The root (or highest) level is level 0, dependents are on levels 1, 2, 3 and lower.


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