Share via


LineNumbering.CountBy Property

Returns or sets the numeric increment for line numbers. For example, if the CountBy property is set to 5, every fifth line will display the line number.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property CountBy As Integer
    Get
    Set
'Usage
Dim instance As LineNumbering
Dim value As Integer

value = instance.CountBy

instance.CountBy = value
int CountBy { get; set; }

Property Value

Type: System.Int32

Remarks

Line numbers are only displayed in print layout view and print preview.

This property has no effect unless the Active property of the LineNumbering object is set to True.

See Also

Reference

LineNumbering Interface

LineNumbering Members

Microsoft.Office.Interop.Word Namespace