PhpOffice\PhpPresentation\Writer\ODPresentation\Content::writeGroupStyle PHP Метод

writeGroupStyle() публичный Метод

Writes the style information for a group of shapes
public writeGroupStyle ( PhpOffice\Common\XMLWriter $objWriter, Group $group )
$objWriter PhpOffice\Common\XMLWriter
$group PhpOffice\PhpPresentation\Shape\Group
    public function writeGroupStyle(XMLWriter $objWriter, Group $group)
    {
        $shapes = $group->getShapeCollection();
        foreach ($shapes as $shape) {
            // Increment $this->shapeId
            ++$this->shapeId;
            // Check type
            if ($shape instanceof RichText) {
                $this->writeTxtStyle($objWriter, $shape);
            }
            if ($shape instanceof AbstractDrawing) {
                $this->writeDrawingStyle($objWriter, $shape);
            }
            if ($shape instanceof Line) {
                $this->writeLineStyle($objWriter, $shape);
            }
            if ($shape instanceof Table) {
                $this->writeTableStyle($objWriter, $shape);
            }
        }
    }