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

setVerticalOverflow() public method

Set vertical overflow
public setVerticalOverflow ( $value = self::OVERFLOW_OVERFLOW ) : RichText
$value string
return RichText
    public function setVerticalOverflow($value = self::OVERFLOW_OVERFLOW)
    {
        $this->verticalOverflow = $value;
        return $this;
    }

Usage Example

示例#1
0
 public function testGetSetVOverflow()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setVerticalOverflow());
     $this->assertEquals(RichText::OVERFLOW_OVERFLOW, $object->getVerticalOverflow());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setVerticalOverflow(RichText::OVERFLOW_CLIP));
     $this->assertEquals(RichText::OVERFLOW_CLIP, $object->getVerticalOverflow());
 }