property Edit.LineNumberWidth as Long
Specifies the width of the border where the that contains the line numbers.

TypeDescription
Long A long expression that defines the width in pixels for the control's line number border. 

Use the LineNumberWidth property to show the control's line number width. Use the BookmarkWidth property to show the control's bookmark border. By default, the LineNumberWidth property is 0. If the control's LineNumberWidth is zero the control's line number border is hidden. If the LineNumberWidth property is 0 the control displays no line numbers border. If the LineNumberWidth property is less than 0 the control sets the width of the line numbers border automatically. Use the LineNumberBackColor and LineNumberForeColor properties to customize colors for the control's line numbers bar. Use the LineNumberFont property to specify the font for the control's line numbers bar.

The following VB sample displays the line bookmarks and line numbers on the same column, and the column is automatically sized:

With Edit1
        .LineNumberWidth = -1
        .BookmarkWidth = -1
End With

The following screen show shows the control's line numbers header bar:

The following C++ sample displays the line bookmarks and line numbers on the same column, and the column is automatically sized:

m_edit.SetLineNumberWidth( -1 );
m_edit.SetBookmarkWidth( -1 );

The following VB.NET sample displays the line bookmarks and line numbers on the same column, and the column is automatically sized:

With AxEdit1
        .LineNumberWidth = -1
        .BookmarkWidth = -1
End With

The following C# sample displays the line bookmarks and line numbers on the same column, and the column is automatically sized:

axEdit1.LineNumberWidth = -1;
axEdit1.BookmarkWidth = -1;

The following VFP sample displays the line bookmarks and line numbers on the same column, and the column is automatically sized:

With thisform.Edit1
	.LineNumberWidth = -1
	.BookmarkWidth = -1
EndWith