Type | Description | |||
IFontDisp | A Font object that specifies the control's font. |
The following VB sample assigns by code a new font to the control:
With ChartView1 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_chartview.GetFont(); font.SetName( "Tahoma" ); m_chartview.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 AxChartView1 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); axChartView1.Font = font; axChartView1.CtlRefresh();
The following VFP sample assigns by code a new font to the control:
with thisform.ChartView1.Object .Font.Name = "Tahoma" .Refresh() endwith
The following Template sample assigns by code a new font to the control:
Font { Name = "Tahoma" }