property Items.CellVAlignment ([Item as Variant], [ColIndex as Variant]) as VAlignmentEnum
Retrieves or sets a value that indicates how the cell's caption is vertically aligned.

TypeDescription
Item as Variant A long expression that identifies the item's handle
ColIndex as Variant A long expression that indicates the column's index or the cell's handle, a string expression that indicates the column's caption. 
VAlignmentEnum A VAlignmentEnum expression that indicates the cell's vertically alignment.

Use the CellVAlignment property to specify the vertically alignment for the cell's caption. Use the CellSingleLine property to specify whether a cell uses single or multiple lines. Use the CellHAlignment property to align horizontally the cell. The +/- button is aligned accordingly to the cell's caption. Use the Def(exCellVAlignment) property to specify the same vertical alignment for the entire column.

The following VB sample aligns the focused cell to the bottom:

With Tree1.Items
    .CellVAlignment(.FocusItem, 0) = VAlignmentEnum.BottomAlignment
End With

The following C++ sample right aligns the focused cell:

#include "Items.h"
CItems items = m_tree.GetItems();
items.SetCellVAlignment( COleVariant( items.GetFocusItem() ), COleVariant( (long)0 ), 2 /*BottomAlignment*/ );

The following VB.NET sample right aligns the focused cell:

With AxTree1.Items
    .CellVAlignment(.FocusItem, 0) = EXTREELib.VAlignmentEnum.BottomAlignment
End With

The following C# sample right aligns the focused cell:

axTree1.Items.set_CellVAlignment(axTree1.Items.FocusItem, 0, EXTREELib.VAlignmentEnum.BottomAlignment);

The following VFP sample right aligns the focused cell:

with thisform.Tree1.Items
	.DefaultItem = .FocusItem
	.CellVAlignment(0,0) = 2 && BottomAlignment
endwith