Type | Description | |||
Index as Long | A long expression that indicates the index of the item. | |||
ColIndex as Variant | A long expression that indicates the column's index, or a string expression that indicates the column's caption or column's key. | |||
Boolean | A boolean expression that indicates whether the cell's caption should appear in italic. |
Use ItemBold, ItemItalic, ItemUnderline or ItemStrikeOut property to apply different font attributes to the item. Use the CellItalic, CellUnderline, CellBold or CellStrikeOut property to apply different font attributes to the cell. Use the CaptionFormat property to specify an HTML caption. Use the ConditionalFormats method to apply formats to a cell or range of cells, and have that formatting change depending on the value of the cell or the value of a formula.
The following VB sample makes italic the focused cell:
With List1.Items .CellItalic(.FirstVisibleItem, 0) = True End With
The following C++ sample makes italic the focused cell:
#include "Items.h" CItems items = m_list.GetItems(); items.SetCellItalic( items.GetFocusItem(), COleVariant( (long)0 ), TRUE );
The following C# sample makes italic the focused cell:
axList1.Items.set_CellItalic(axList1.Items.FocusItem, 0, true);
The following VB.NET sample makes italic the focused cell:
With AxList1.Items .CellItalic(.FocusItem, 0) = True End With
The following VFP sample makes italic the focused cell:
with thisform.List1.Items .CellItalic( .FocusItem, 0 ) = .t. endwith