Skip to content

AutoShape

Warning

Available only on the PowerPoint2007 Writer

To create a geometric form, create an object AutoShape and add it to slide.

<?php

use PhpOffice\PhpPresentation\Shape\AutoShape;

$shape = new AutoShape();
$slide->addShape($shape)

Text

You can define text of the geometric form with setText method.

<?php

use PhpOffice\PhpPresentation\Shape\AutoShape;

$shape = new AutoShape();
// Define the text
$shape->setText('ABC');
// Return the text
$shape->getText();