Package com.aspose.words

Examples of com.aspose.words.ParagraphFormat


  {
    Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);
   
    // Set paragraph formatting properties
    ParagraphFormat paragraphFormat = builder.getParagraphFormat();
    paragraphFormat.setAlignment(ParagraphAlignment.CENTER);
    paragraphFormat.setLeftIndent(50);
    paragraphFormat.setRightIndent(50);
    paragraphFormat.setSpaceAfter(25);

    // Output text
    builder.writeln("I'm a very nice formatted paragraph. I'm intended to demonstrate how the left and right indents affect word wrapping.");
   
    // Set font formatting properties
View Full Code Here

TOP

Related Classes of com.aspose.words.ParagraphFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.