shapes.rst 858 B

123456789101112131415161718192021222324252627282930313233
  1. .. _shapes:
  2. Shapes
  3. ======
  4. Shapes are objects that can be added to a slide. There are five types of shapes that can be used, i.e. [rich text](#rich-text), [line](#line), [chart](#chart), [drawing](#drawing), and [table](#table). Read the corresponding section of this manual for detail information of each shape.
  5. Every shapes have common properties that you can set by using fluent interface.
  6. - ``width`` in pixels
  7. - ``height`` in pixels
  8. - ``offsetX`` in pixels
  9. - ``offsetY`` in pixels
  10. - ``rotation`` in degrees
  11. - ``fill`` see *[Fill](#fill)*
  12. - ``border`` see *[Border](#border)*
  13. - ``shadow`` see *[Shadow](#shadow)*
  14. - ``hyperlink``
  15. Example:
  16. .. code-block:: php
  17. $richtext = $slide->createRichTextShape()
  18. ->setHeight(300)
  19. ->setWidth(600)
  20. ->setOffsetX(170)
  21. ->setOffsetY(180);
  22. Line
  23. ----
  24. To create a line, use `createLineShape` method of slide.