Shapes are all the objects that can be placed on a slide.

Shapes Collection


* Slides have a collection of shapes that contains all the shapes on a slide.

* This collection exists even if there are no shapes added to the slide.

* Any shapes added to a slide are added to the slides collection.



AutoShapes

sld1.Shapes.AddShape [type, left, top, width, height]


AutoShapes are rectangles, circles, callouts, arrows, stars, flowchart shapes and more.

Add a rectangle shape at left 50, top 50 width 100 and height 200 points.


Add a 5 point star shape at left 50, top 200 width 200 and height 200 points.


Add a SmileyFace.




Picture

sld1.Shapes.AddPicture [FileName, LinkToFile, SaveWithDocument, left, top, width, height]



Add a picture at left 50, top 50 width 100 and height 200 points.


Adding a picture to a page requires the path and name of the image file.
You must also enter the LinkToFile value, which is True if you want to link to the original image, or False if not.
The SaveWithDocument value is also required. This must be True if LinkToFile is False.


TextBox

sld1.Shapes.AddTextBox [Orientation, left, top, width, height]











Copyright © 2006-2016, LQSystems,Inc. All rights reserved.


   Printer Friendly Page


Home