property Edit.LineNumberFont as IFontDisp
Retrieves or sets the font of the line numbers bar.

TypeDescription
IFontDisp A font object being used to paint the line numbers.
Use the LineNumberFont property to specify the font for the line numbers bar. Use the LineNumberWidth property to display the control's line numbers bar. Use the Font property to assign a font for the control's lines. Use the Refresh method to update the control's visible area.

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