property Group.CaptionFormat as CaptionFormatEnum
Specifies how the group's caption is displayed.

TypeDescription
CaptionFormatEnum A CaptionFormatEnum expression that indicates whether the control uses built-in HTML tags.

By default, the CaptionFormat property is exText.  Use the CaptionFormat property to allow built-in HTML tags to the group's caption. Use the Caption property to access the group's caption. Use the AddItem method to add a new item to the group. The Caption property supports the following built-in HTML tags:

Newer HTML format supports subscript and superscript like follows:

Also, newer HTML format supports decorative text like follows:

 

The following VB sample adds an HTML item:

With ListBar1.Groups(0)
    With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.")
        .CaptionFormat = exHTML
    End With
End With

The following C++ sample adds an HTML item:

COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR;
CGroup group = m_listbar.GetGroups().GetItem( COleVariant( long(0) ) );
CItem item = group.AddItem( "This is an <fgcolor=000080><b>HTML</b></fgcolor> item.", vtMissing );
item.SetCaptionFormat( 1 /*exHTML*/ );

The following VB.NET sample adds an HTML item:

With AxListBar1.Groups(0)
    With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.")
        .CaptionFormat = EXLISTBARLib.CaptionFormatEnum.exHTML
    End With
End With

The following C# sample adds an HTML item:

EXLISTBARLib.Item item = axListBar1.Groups[0].AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.", null);
item.CaptionFormat = EXLISTBARLib.CaptionFormatEnum.exHTML;

The following VFP sample adds an HTML item:

With thisform.ListBar1.Groups(0)
    With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.")
        .CaptionFormat = 1 && exHTML
    EndWith
EndWith