property ExMenu.Font as IFontDisp
Retrieves or sets the menu's font.

TypeDescription
IFontDisp A Font object that defines the menu's font. 

Use the Font property to specify the control's font. Use the properties like Bold, Italic, Underline, Strikeout to apply different font attribute for any item in the menu. Use the Caption property to specify an HTML caption for an item. Use the ItemHeight property to specify the height for all items. Use the Refresh method to refresh the control.

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

With ExMenu1
    With .Font
        .Name = "Tahoma"
    End With
    .Refresh
End With

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

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

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

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

With AxExMenu1
    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 assigns by code a new font to the control:

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

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

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