ORIENTATION_PORTRAIT
ORIENTATION_PORTRAIT = 'portrait'
Page orientation
Section settings
$paper : \PhpOffice\PhpWord\Style\Paper
Paper size
$lineNumbering : \PhpOffice\PhpWord\Style\LineNumbering
Line numbering
getChildStyleValue(\PhpOffice\PhpWord\Style\AbstractStyle $substyleObject, string $substyleProperty) : mixed
Return style value of child style object, e.g. `left` from `Indentation` child style of `Paragraph`
\PhpOffice\PhpWord\Style\AbstractStyle | $substyleObject | |
string | $substyleProperty |
setStyleValue(string $key, string $value) : self
Set style value template method
Some child classes have their own specific overrides. Backward compability check for versions < 0.10.0 which use underscore prefix for their private properties. Check if the set method is exists. Throws an exception?
string | $key | |
string | $value |
None found |
None found |
setPaperSize(string $value = 'A4') : self
Set paper size
string | $value |
None found |
setSettingValue(string $key, string $value) : self
Set Setting Value
string | $key | |
string | $value |
None found |
setOrientation(string $value = null) : self
Set orientation
string | $value |
None found |
None found |
None found |
None found |
since | 0.12.0 |
---|
setPageSizeW(integer|float|null $value = null) : \PhpOffice\PhpWord\Style\Section
integer|float|null | $value |
since | 0.12.0 |
---|
since | 0.12.0 |
---|
setPageSizeH(integer|float|null $value = null) : \PhpOffice\PhpWord\Style\Section
integer|float|null | $value |
since | 0.12.0 |
---|
None found |
setMarginTop(integer|float $value = null) : self
Set Margin Top
integer|float | $value |
None found |
None found |
setMarginLeft(integer|float $value = null) : self
Set Margin Left
integer|float | $value |
None found |
None found |
setMarginRight(integer|float $value = null) : self
Set Margin Right
integer|float | $value |
None found |
None found |
setMarginBottom(integer|float $value = null) : self
Set Margin Bottom
integer|float | $value |
None found |
None found |
setGutter(integer|float $value = null) : self
Set gutter
integer|float | $value |
None found |
None found |
setHeaderHeight(integer|float $value = null) : self
Set Header Height
integer|float | $value |
None found |
None found |
setFooterHeight(integer|float $value = null) : self
Set Footer Height
integer|float | $value |
None found |
getPageNumberingStart() : null|integer
Get page numbering start
None found |
setPageNumberingStart(null|integer $pageNumberingStart = null) : self
Set page numbering start
null|integer | $pageNumberingStart |
None found |
None found |
setColsNum(integer $value = null) : self
Set Section Columns Count
integer | $value |
None found |
getColsSpace() : integer|float
Get Section Space Between Columns
None found |
setColsSpace(integer|float $value = null) : self
Set Section Space Between Columns
integer|float | $value |
None found |
None found |
setBreakType(string $value = null) : self
Set Break Type
string | $value |
None found |
getLineNumbering() : \PhpOffice\PhpWord\Style\LineNumbering
Get line numbering
None found |
setLineNumbering(mixed $value = null) : self
Set line numbering
mixed | $value |
None found |
setNonEmptyVal(string $value, string $default) : string
Set default for null and empty value
string | $value | (was: mixed) |
string | $default | (was: mixed) |
(was: mixed)
None found |
setBoolVal(boolean $value, boolean $default) : boolean
Set bool value
boolean | $value | |
boolean | $default |
None found |
setNumericVal(mixed $value, integer|float|null $default = null) : integer|float|null
Set numeric value
mixed | $value | |
integer|float|null | $default |
None found |
setIntVal(integer|null $value, integer|null $default = null) : integer|null
Set integer value: Convert string that contains only numeric into integer
integer|null | $value | |
integer|null | $default |
None found |
setFloatVal(mixed $value, float|null $default = null) : float|null
Set float value: Convert string that contains only numeric into float
mixed | $value | |
float|null | $default |
None found |
setEnumVal(mixed $value = null, array $enum = array(), mixed $default = null) : mixed
Set enum value
mixed | $value | |
array | $enum | |
mixed | $default |
None found |
setObjectVal(mixed $value, string $styleName, $style) : mixed
Set object value
mixed | $value | |
string | $styleName | |
$style |
None found |
setPairedVal( $property, $pairProperty, boolean $value) : self
Set $property value and set $pairProperty = false when $value = true
$property | ||
$pairProperty | ||
boolean | $value |
None found |