Type | Description | |||
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 G2antt1.Items .CellVAlignment(.FocusItem, 0) = VAlignmentEnum.BottomAlignment End With
The following C++ sample right aligns the focused cell:
#include "Items.h" CItems items = m_g2antt.GetItems(); items.SetCellVAlignment( COleVariant( items.GetFocusItem() ), COleVariant( (long)0 ), 2 /*BottomAlignment*/ );
The following VB.NET sample right aligns the focused cell:
With AxG2antt1.Items .CellVAlignment(.FocusItem, 0) = EXG2ANTTLib.VAlignmentEnum.BottomAlignment End With
The following C# sample right aligns the focused cell:
axG2antt1.Items.set_CellVAlignment(axG2antt1.Items.FocusItem, 0, EXG2ANTTLib.VAlignmentEnum.BottomAlignment);
The following VFP sample right aligns the focused cell:
with thisform.G2antt1.Items .DefaultItem = .FocusItem .CellVAlignment(0,0) = 2 && BottomAlignment endwith