setActiveSlide
- getTemplateVariables
- getTemplateVariablesType
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
setActiveSlide

Sets the active slide.
Description
public setActiveSlide($options)
This method sets the internal active slide.
This internal active slide is used to add new contents in the chosen slide.
Parameters
options
Key | Type | Description |
---|---|---|
position | int | Slide position. 0 is the first slide. -1 can be used to choose the last slide. |
An existing position must be chosen.
Exceptions
Position isn't set.
Position doesn't exist.
Code samples
Example #1
Release notes
- phppptx 1.0:
- new method.