PhpOffice\PhpPresentation\Shape\RichText::setAutoShrinkVertical PHP Method

setAutoShrinkVertical() public method

Set vertical auto shrink
public setAutoShrinkVertical ( boolean $value = null )
$value boolean
    public function setAutoShrinkVertical($value = null)
    {
        if (is_bool($value)) {
            $this->autoShrinkVertical = $value;
        }
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetSetVAutoShrink()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkVertical());
     $this->assertNull($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkVertical(2));
     $this->assertNull($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkVertical(true));
     $this->assertTrue($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkVertical(false));
     $this->assertFalse($object->hasAutoShrinkVertical());
 }