property ExFileView.Font as IFontDisp

Retrieves or sets the Font object used to paint control.

TypeDescription
IFontDisp A Font object being used to paint the items within the control.

Use the Font property to change the control's font. Use the Bold property to bold files that matches a pattern. Use the Bold property to bold a specified file or folder. Use the Refresh method to refresh the control.

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

With ExFileView1
    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_fileview.GetFont();
font.SetName( "Tahoma" );
m_fileview.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 AxExFileView1
    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);
axExFileView1.Font = font;
axExFileView1.CtlRefresh();

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

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