property ListBar.Font as IFontDisp
Retrieves or sets the control's font.

TypeDescription
IFontDisp A Font object that specifies the control's font.

Use the Font property to specify the control's font. Use the Bold, Italic, Underline or StrikeOut property to define the font for caption of the group. Use the Caption property to define the caption of the group. Use the Bold, Italic, Underline or StrikeOut property to define the font for caption of the item. Use the Caption property to define the caption of the item. The GroupHeight property specifies the height of the caption for all groups, in pixels. Use the ItemHeight property to specify height of the items in the group's list.

The following VB sample changes by code a new font to the control:

With ListBar1
    With .Font
        .Name = "Tahoma"
    End With
End With

The following C++ sample changes by code a new font to the control:

COleFont font = m_listbar.GetFont();
font.SetName( "Tahoma" );

the C++ sample requires definition of COleFont class ( #include "Font.h" )

The following VB.NET sample changes by code a new font to the control:

With AxListBar1
    Dim font As System.Drawing.Font = New System.Drawing.Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point)
    .Font = font
End With

The following C# sample changes by code a new font to the control:

System.Drawing.Font font = new System.Drawing.Font("Tahoma", 10, FontStyle.Regular);
axListBar1.Font = font;

The following VFP sample changes by code a new font to the control:

with thisform.ListBar1.Object
	.Font.Name = "Tahoma"
endwith

The following Template sample changes by code a new font to the control:

Font
{
	Name = "Tahoma"
}