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 is bolded. |
Use the CellBold property to bold a cell. Use the ItemBold property to specify whether the item should appear in bold. Use the HeaderBold property of the Column object to bold the column's caption. Use the CellItalic, CellUnderline or CellStrikeOut property to apply different font attributes to the cell. Use the ItemItalic, ItemUnderline or ItemStrikeOut property to apply different font attributes to the item. 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 bolds the cells in the first column
Dim h As Variant With List1 .BeginUpdate With .Items For Each h In List1.Items .CellBold(h, 0) = True Next End With .EndUpdate End With
The following C++ sample bolds the focused cell:
#include "Items.h" CItems items = m_list.GetItems(); items.SetCellBold( items.GetFocusItem(), COleVariant( (long)0 ), TRUE );
The following C# sample bolds the focused cell:
axList1.Items.set_CellBold(axList1.Items.FocusItem, 0, true);
The following VB.NET sample bolds the focused cell:
With AxList1.Items .CellBold(.FocusItem, 0) = True End With
The following VFP sample bolds the focused cell:
with thisform.List1.Items .CellBold( .FocusItem, 0 ) = .t. endwith