property ExplorerBar.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. Use the Refresh method to refresh the control. 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 ExplorerBar1
    With .Font
        .Name = "Tahoma"
    End With
    .Refresh
End With

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

COleFont font = m_explorerbar.GetFont();
font.SetName( "Tahoma" );
m_explorerbar.Refresh();

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 AxExplorerBar1
    Dim font As System.Drawing.Font = New System.Drawing.Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point)
    .Font = font
    .CtlRefresh()
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);
axExplorerBar1.Font = font;
axExplorerBar1.CtlRefresh();

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

with thisform.ExplorerBar1.Object
	.Font.Name = "Tahoma"
	.Refresh()
endwith

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

Font
{
	Name = "Tahoma"
}