property Items.ItemBold(Item as HITEM) as Boolean

Retrieves or sets a value that indicates whether the item is bolded.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
Boolean A boolean expression that indicates whether the items 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 CellCaptionFormat 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 hOldBold As HITEM
Private Sub ComboBox1_SelectionChanged()
    If Not (hOldBold = 0) Then
        ComboBox1.Items.ItemBold(hOldBold) = False
    End If
    hOldBold = ComboBox1.Items.SelectedItem()
    ComboBox1.Items.ItemBold(hOldBold) = True
End Sub

The following VB sample bolds the focused item:

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

The following C++ sample bolds the focused item:

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

The following C# sample bolds the focused item:

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

The following VB.NET sample bolds the focused item:

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

The following VFP sample bolds the focused item:

with thisform.ComboBox1.Items
	.DefaultItem = .FocusItem
	.ItemBold( 0 ) = .t.
endwith