Inserting Text Trapezoid Using Java Posted on: March 14, 2008 By Deepak Kumar
In this example we are going to create a trapezoid on PowerPoint slide, then we are inserting text using java.
Inserting Text Trapezoid Using Java
In this example we are going to create a trapezoid on PowerPoint slide,
then we are inserting text using
java.
In this example, we are creating a slide master for the slide show. To create
slide show we are using SlideShow constructor and to create master slide
we are using SlideMaster constructor. Then we are creating an object of Slide
to create a slide. To create a trapezoid shape we have to use an object of AutoShape
class in which we are passing the shape type as trapezoid. To set the
position we are using setAnchor() method. To set the color we are using setFillColor(Color.Red).
To insert text we are creating an object of RichTextRun constructor. In this we
are passing text value. Finally we are adding it by using addShape()
method.
Ask Questions? Discuss: Inserting Text Trapezoid Using Java
Post your Comment