property Items.ItemBold(Index as Long) as Boolean
Retrieves or sets a value that indicates whether the item should appear in bold.

TypeDescription
Index as Long A long expression that indicates the index of the item.
Boolean A boolean expression that specifies whether the item is bolded.

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 bolds the selected item:

Dim iOldBold As Long

Private Sub List1_SelectionChanged()
    With List1.Items
        If Not (iOldBold = -1) Then
            .ItemBold(iOldBold) = False
        End If
        iOldBold = .SelectedItem()
        .ItemBold(iOldBold) = True
    End With
End Sub

The following VB sample bolds the focused item:

With List1.Items
    .ItemBold(.FocusItem) = True
End With

The following C++ sample bolds the focused item:

#include "Items.h"
CItems items = m_list.GetItems();
items.SetItemBold( items.GetFocusItem() , TRUE );

The following C# sample bolds the focused item:

axList1.Items.set_ItemBold(axList1.Items.FocusItem, true);

The following VB.NET sample bolds the focused item:

With AxList1.Items
    .ItemBold(.FocusItem) = True
End With

The following VFP sample bolds the focused item:

with thisform.List1.Items
	.ItemBold( .FocusItem ) = .t.
endwith