SftTree/OCX 7.0

SftTreeItems.ItemImageAlign Property

Softel vdm, Inc.

Defines whether item graphics are aligned with higher level cells.

Syntax       

Get

VB.NET

Boolean = object.ItemImageAlign  As Boolean

VB

Boolean = object.ItemImageAlign  As Boolean

C#.NET

bool Boolean = object.ItemImageAlign;

VC++

VARIANT_BOOL Boolean = object->ItemImageAlign;
VARIANT_BOOL Boolean = object->GetItemImageAlign();

C

HRESULT object->get_ItemImageAlign(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.ItemImageAlign   : WordBool;

Put

VB.NET

object.ItemImageAlign = Boolean  As Boolean

VB

object.ItemImageAlign = Boolean  As Boolean

C#.NET

bool object.ItemImageAlign = Boolean;

VC++

VARIANT_BOOL object->ItemImageAlign = Boolean;
void object->PutItemImageAlign(VARIANT_BOOL Boolean);

C

HRESULT object->put_ItemImageAlign(VARIANT_BOOL Boolean);

Delphi

object.ItemImageAlign := Boolean   : WordBool;

object

A SftTreeItems object.

Boolean

Defines whether item graphics are aligned with higher level cells.

Boolean

Description

True

Item graphics of items at a lower level are aligned with the cell of the immediate parent level.

False

Item graphics are not aligned, resulting in a still indented, but narrower look.  The width of the indentation is determined by the width of the expand/collapse button bitmaps, the width of the item pictures and the default font used for the tree control.

Comments

The ItemImageAlign property defines whether item graphics are aligned with higher level cells.

In a variable height tree control, item graphics may be of varying widths and heights.  If item bitmaps are smaller than the largest item bitmap used, the item bitmaps are horizontally centered within the space available for item bitmaps.  This results in (smaller) item bitmaps not aligned with the cells of the parent level.

If the Items.Indentation property is used to define the exact indentation for item levels, the ItemImageAlign property defines whether tree lines are connected to the parent's item graphic or simply centered within the parent's cell.

See Also  SftTreeItems Object | Object Hierarchy


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