property Group.Italic as Boolean
Specifies whether the group's caption should appear in italic.

TypeDescription
Boolean A boolean expression that specifies whether the group's caption should appear in italic.

Use the Bold, Italic, Underline and StrikeOut properties to apply different font attributes to the group. 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 Italic property to make an item appear in italic. Use the <i> HTML tag to specify parts of group's caption that should appear in italic, if CaptionFormat property is exHTML.

The following VB sample makes all groups appear in italic:

Private Sub ListBar1_AddGroup(ByVal Group As EXLISTBARLibCtl.IGroup)
    With Group
        .Italic = True
    End With
End Sub

The following C++ sample makes all groups appear in italic:

void OnAddGroupListbar1(LPDISPATCH Group) 
{
	CGroup group( Group ); group.m_bAutoRelease = FALSE;
	group.SetBold( TRUE );
}

The following VB.NET sample makes all groups appear in italic:

Private Sub AxListBar1_AddGroup(ByVal sender As System.Object, ByVal e As AxEXLISTBARLib._IListBarEvents_AddGroupEvent) Handles AxListBar1.AddGroup
    With e.group
        .Italic = True
    End With
End Sub

The following C# sample makes all groups appear in italic:

private void axListBar1_AddGroup(object sender, AxEXLISTBARLib._IListBarEvents_AddGroupEvent e)
{
	e.group.Italic = true;
}

The following VFP sample makes all groups appear in italic:

*** ActiveX Control Event ***
LPARAMETERS group

with group
	.Italic = .t.
endwith