PHPRtfLite::setMarginRight PHP Метод

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

sets the right margin of document pages
public setMarginRight ( float $margin )
$margin float
    public function setMarginRight($margin)
    {
        $this->_marginRight = $margin;
    }

Usage Example

Пример #1
0
 /**
  * tests PHPRtfLite_Container_Section::getLayoutWidth
  */
 public function testGetLayoutWidthUsingRtfValues()
 {
     $this->_rtf->setPaperWidth(20);
     $this->_rtf->setMarginLeft(2.3);
     $this->_rtf->setMarginRight(2.7);
     $this->assertEquals(15, $this->_section->getLayoutWidth());
     return $this->_section;
 }