Type | Description | |||
IFontDisp | A font object being used to paint the line numbers. |
The following VB sample assigns a different font for the control's line numbers bar:
With Edit1 .LineNumberWidth = 32 With .LineNumberFont .Name = "Tahoma" .Bold = True End With .Refresh End With
The following C++ sample assigns a different font for the control's line numbers bar:
m_edit.SetLineNumberWidth( 32 ); COleFont font = m_edit.GetLineNumberFont(); font.SetName( "Tahoma" ); font.SetBold( TRUE ); m_edit.Refresh();
The following VB.NET sample assigns a different font for the control's line numbers bar:
With AxEdit1 .LineNumberWidth = 32 .LineNumberFont = New System.Drawing.Font("Tahoma", 10, FontStyle.Bold) .CtlRefresh() End With
The following C# sample assigns a different font for the control's line numbers bar:
axEdit1.LineNumberWidth = 32; axEdit1.LineNumberFont = new System.Drawing.Font("Tahoma", 10, FontStyle.Bold); axEdit1.CtlRefresh();
The following VFP sample assigns a different font for the control's line numbers bar:
With thisform.Edit1.Object .LineNumberWidth = 32 With .LineNumberFont .Name = "Tahoma" .Bold = .t. EndWith .Refresh EndWith