slides.rst 701 B

1234567891011121314151617181920212223242526272829
  1. .. _slides:
  2. Slides
  3. ======
  4. Slides are pages in a presentation. Slides are stored as a zero based array in ``PHPPresentation`` object. Use ``createSlide`` to create a new slide and retrieve the slide for other operation such as creating shapes for that slide.
  5. Name
  6. ----
  7. By default, a slide has not a name.
  8. You can define it with the method ``setName``.
  9. .. code-block:: php
  10. $oSlide = $oPHPPresentation->createSlide();
  11. $oSlide->setName('Title of the slide');
  12. Visibility
  13. ----------
  14. By default, a slide is visible.
  15. You can define it with the method ``setIsVisible``.
  16. .. code-block:: php
  17. $oSlide = $oPHPPresentation->createSlide();
  18. $oSlide->setIsVisible(false);
  19. var_dump($oSlide->isVisible());