Package org.docx4j.wml

Examples of org.docx4j.wml.CTBackground


   
  private static CTBackground createBackground(String rId) {

    org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();

    CTBackground background = wmlObjectFactory.createCTBackground();
    background.setColor("FFFFFF");
    org.docx4j.vml.ObjectFactory vmlObjectFactory = new org.docx4j.vml.ObjectFactory();
    // Create object for background (wrapped in JAXBElement)
    org.docx4j.vml.CTBackground background2 = vmlObjectFactory
        .createCTBackground();
    JAXBElement<org.docx4j.vml.CTBackground> backgroundWrapped = vmlObjectFactory
        .createBackground(background2);
    background.getAnyAndAny().add(backgroundWrapped);
    background2.setTargetscreensize("1024,768");
    background2.setVmlId("_x0000_s1025");
    background2.setBwmode(org.docx4j.vml.officedrawing.STBWMode.WHITE);
    // Create object for fill
    CTFill fill = vmlObjectFactory.createCTFill();
View Full Code Here

TOP

Related Classes of org.docx4j.wml.CTBackground

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.