property ExFileView.FilterBarFont as IFontDisp
Retrieves or sets the font for control's filter bar. /*not supported in the lite version*/

 TypeDescription 
   IFontDisp A font object that indicates the font used to paint the description for control's filter bar.  
Use the FilterBarFont property to specify the font for the control's filter bar. Use the Font property to set the control's font. Use the FilterBarHeight property to specify the height of the filter bar. Use the FilterBarCaption property to define the control's filter bar caption. Use the Refresh method to refresh the control.

The following VB sample assigns by code a new font to the control's filter bar:

With ExFileView1
    With .FilterBarFont
        .Name = "Tahoma"
    End With
    .Refresh
End With

The following C++ sample assigns by code a new font to the control's filter bar:

COleFont font = m_fileview.GetFilterBarFont();
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's filter bar:

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

The following C# sample assigns by code a new font to the control's filter bar:

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

The following VFP sample assigns by code a new font to the control's filter bar:

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

 

 


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.