Package com.aspose.slides

Examples of com.aspose.slides.IShape


    Presentation pres = new Presentation("data/demo.pptx");
   
    //Access first slide
    ISlide slide = pres.getSlides().get_Item(0);
   
    IShape shape= null;
   
    //Iterate through the shapes and set a reference to the table found
    for (int i = 0 ; i < slide.getShapes().size() ; i++)
    {
        shape = slide.getShapes().get_Item(i);
        if (shape.getPlaceholder() != null)
        {
            //Change the text of each placeholder
            ((IAutoShape)shape).getTextFrame().setText("This is Placeholder");
        }
    }
View Full Code Here


    // Access first slide
    ISlide slide = pres.getSlides().get_Item(0);

    // Add an AutoShape of Rectangle Type
    IShape pptxShape = slide.getShapes().addAutoShape(ShapeType.Rectangle,
        150, 150, 150, 50);

    // Cast the shape to AutoShape
    IAutoShape pptxAutoShape = (IAutoShape) pptxShape;
View Full Code Here

TOP

Related Classes of com.aspose.slides.IShape

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.