![]() | Type | Description | ||
| IFontDisp | A font object that indicates the font used to paint the description for control's filter. |
Use the FilterBarFont property to specify the font for the control's filter bar object. 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 filter bar control:
With List1
With .FilterBarFont
.Name = "Tahoma"
End With
.Refresh
End With
The following C++ sample assigns by code a new font to the filter bar control:
COleFont font = m_list.GetFilterBarFont(); font.SetName( "Tahoma" ); m_list.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 filter bar control:
With AxList1
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 filter bar control:
System.Drawing.Font font = new System.Drawing.Font("Tahoma", 10, FontStyle.Regular);
axList1.FilterBarFont = font;
axList1.CtlRefresh();
The following VFP sample assigns by code a new font to the filter bar control:
with thisform.List1.Object .FilterBarFont.Name = "Tahoma" .Refresh() endwith
The following Template sample assigns by code a new font to the filter bar control:
FilterBarFont
{
Name = "Tahoma"
}