Ignore:
Timestamp:
07/19/08 19:14:53 (4 years ago)
Author:
jharrop
Message:

Convenience methods for activating a style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/samples/CreateWordprocessingMLDocument.java

    r495 r509  
    4141                WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage(); 
    4242                 
    43                 wordMLPackage.getMainDocumentPart().addParagraphOfText("Hello world, from docx4j!"); 
     43                wordMLPackage.getMainDocumentPart() 
     44                        .addStyledParagraphOfText("Title", "Hello world"); 
     45 
     46                wordMLPackage.getMainDocumentPart().addParagraphOfText("from docx4j!"); 
    4447                 
    4548                System.out.println( ".. done!"); 
Note: See TracChangeset for help on using the changeset viewer.