PHP 클래스 PhpOffice\PhpPresentation\DocumentLayout

파일 보기 프로젝트 열기: phpoffice/phppowerpoint 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Create a new \PhpOffice\PhpPresentation\DocumentLayout
getCX ( string $unit = self::UNIT_EMU ) : integer Get Document Layout cx
getCY ( string $unit = self::UNIT_EMU ) : integer Get Document Layout cy
getDocumentLayout ( ) : string Get Document Layout
setCX ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout Get Document Layout cx
setCY ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout Get Document Layout cy
setDocumentLayout ( array | string $pValue = self::LAYOUT_SCREEN_4X3, boolean $isLandscape = true ) : DocumentLayout Set Document Layout

보호된 메소드들

메소드 설명
convertUnit ( float $value, string $fromUnit, string $toUnit ) : float Convert EMUs to differents units

메소드 상세

__construct() 공개 메소드

Create a new \PhpOffice\PhpPresentation\DocumentLayout
public __construct ( )

convertUnit() 보호된 메소드

Convert EMUs to differents units
protected convertUnit ( float $value, string $fromUnit, string $toUnit ) : float
$value float
$fromUnit string
$toUnit string
리턴 float

getCX() 공개 메소드

Get Document Layout cx
public getCX ( string $unit = self::UNIT_EMU ) : integer
$unit string
리턴 integer

getCY() 공개 메소드

Get Document Layout cy
public getCY ( string $unit = self::UNIT_EMU ) : integer
$unit string
리턴 integer

getDocumentLayout() 공개 메소드

Get Document Layout
public getDocumentLayout ( ) : string
리턴 string

setCX() 공개 메소드

Get Document Layout cx
public setCX ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout
$value float
$unit string
리턴 DocumentLayout

setCY() 공개 메소드

Get Document Layout cy
public setCY ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout
$value float
$unit string
리턴 DocumentLayout

setDocumentLayout() 공개 메소드

Set Document Layout
public setDocumentLayout ( array | string $pValue = self::LAYOUT_SCREEN_4X3, boolean $isLandscape = true ) : DocumentLayout
$pValue array | string
$isLandscape boolean
리턴 DocumentLayout