property Item.Bold as Boolean
Specifies whether the item's caption should appear in bold.

TypeDescription
Boolean A boolean expression that indicates whether the item's caption should appear in bold. 

Use the Bold, Italic, Underline and StrikeOut properties to apply different font attributes to the item. Use the Caption property to display different parts of the caption using HTML format. Use the Font property to specify the control's font. Use the Group property to get the group that owns the item.

The following VB sample bolds all items in the first group:

Private Sub ListBar1_AddItem(ByVal Item As EXLISTBARLibCtl.IItem)
    If (Item.Group.Index = 0) Then
        With Item
            .Bold = True
        End With
    End If
End Sub

The following C++ sample bolds all items in the first group:

void OnAddItemListbar1(LPDISPATCH Item) 
{
	CItem item( Item ); item.m_bAutoRelease = FALSE;
	if ( item.GetGroup().GetIndex() == 0 )
		item.SetBold( TRUE );
}

The following VB.NET sample bolds all items in the first group:

Private Sub AxListBar1_AddItem(ByVal sender As Object, ByVal e As AxEXLISTBARLib._IListBarEvents_AddItemEvent) Handles AxListBar1.AddItem
    With e.item
        If (.Group.Index = 0) Then
            .Bold = True
        End If
    End With
End Sub

The following C# sample bolds all items in the first group:

private void axListBar1_AddItem(object sender, AxEXLISTBARLib._IListBarEvents_AddItemEvent e)
{
	if (e.item.Group.Index == 0)
		e.item.Bold = true;
}

The following VFP sample bolds all items in the first group:

*** ActiveX Control Event ***
LPARAMETERS item

with item
	If (.Group.Index = 0) Then
		.Bold = .t.
	EndIf
endwith