com.aspose.words
Class LineNumberRestartMode

java.lang.Object
    extended by com.aspose.words.LineNumberRestartMode

public class LineNumberRestartMode 
extends java.lang.Object

Utility class containing constants. Determines when automatic line numbering restarts.

Example:

Turns on Microsoft Word line numbering for a section.
DocumentBuilder builder = new DocumentBuilder();

PageSetup ps = builder.getPageSetup();
ps.setLineStartingNumber(1);
ps.setLineNumberCountBy(5);
ps.setLineNumberRestartMode(LineNumberRestartMode.RESTART_PAGE);

for (int i = 1; i <= 20; i++)
    builder.writeln(java.text.MessageFormat.format("Line {0}.", i));

builder.getDocument().save(getMyDir() + "PageSetup.LineNumbers Out.doc");
See Also:
PageSetup, PageSetup.LineNumberRestartMode

Field Summary
static final intRESTART_PAGE = 0
           Line numbering restarts at the start of every page.
static final intRESTART_SECTION = 1
           Line numbering restarts at the section start.
static final intCONTINUOUS = 2
           Line numbering continuous from the previous section.
 

Field Detail

RESTART_PAGE = 0

public static final int RESTART_PAGE
Line numbering restarts at the start of every page.

RESTART_SECTION = 1

public static final int RESTART_SECTION
Line numbering restarts at the section start.

CONTINUOUS = 2

public static final int CONTINUOUS
Line numbering continuous from the previous section.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.