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(MessageFormat.format("Line {0}.", i));

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

Field Summary
static final intRESTART_PAGE
           Line numbering restarts at the start of every page.
static final intRESTART_SECTION
           Line numbering restarts at the section start.
static final intCONTINUOUS
           Line numbering continious from the previous section.
 

Field Detail

RESTART_PAGE

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

RESTART_SECTION

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

CONTINUOUS

public static final int CONTINUOUS
Line numbering continious 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.