Package com.aspose.slides

Examples of com.aspose.slides.ITextFrame


      //Accessing a slide using its slide position
      ISlide slide = pres.getSlides().get_Item(0);

      //Accessing the first and second placeholder in the slide and typecasting it as AutoShape
      ITextFrame tf1 = ((IAutoShape)slide.getShapes().get_Item(0)).getTextFrame();
      ITextFrame tf2 = ((IAutoShape)slide.getShapes().get_Item(1)).getTextFrame();

      //Accessing the first Paragraph
      IParagraph para1 = tf1.getParagraphs().get_Item(0);
      IParagraph para2 = tf2.getParagraphs().get_Item(0);

      //Accessing the first portion
      IPortion port1 = para1.getPortions().get_Item(0);
      IPortion port2 = para2.getPortions().get_Item(0);
View Full Code Here


    IAutoShape pptxAutoShape = (IAutoShape) pptxShape;

    // Access ITextFrame associated with the AutoShape
    pptxAutoShape.addTextFrame("");

    ITextFrame ITextFrame = pptxAutoShape.getTextFrame();

    // Add some text to the frame
    ITextFrame.getParagraphs().get_Item(0).getPortions().get_Item(0)
        .setText("Aspose.Slides");

    // Set Hyperlink for the portion text
    IHyperlinkManager HypMan = ITextFrame.getParagraphs().get_Item(0)
        .getPortions().get_Item(0).getPortionFormat()
        .getHyperlinkManager();
    HypMan.setExternalHyperlinkClick("http://www.aspose.com");

    // Save the PPTX to Disk
View Full Code Here

TOP

Related Classes of com.aspose.slides.ITextFrame

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.