WIDTH_AUTO
WIDTH_AUTO = 'auto'
Border style
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
$index : integer|null
Index number in Style collection for named style
This number starts from one and defined in Style::setStyleValues()
None found |
None found |
$isAuto : boolean
Is this an automatic style? (Used primarily in OpenDocument driver)
since | 0.11.0 |
---|
$firstRowStyle : \PhpOffice\PhpWord\Style\Table
Style for first row
None found |
None found |
None found |
None found |
None found |
$shading : \PhpOffice\PhpWord\Style\Shading
Shading
None found |
$position : \PhpOffice\PhpWord\Style\TablePosition
Position
None found |
$indent : \PhpOffice\PhpWord\ComplexType\TblWidth|null
None found |
$columnWidths : array<mixed,integer>
The width of each column, computed based on the max cell width of each column
None found |
getBorderSize() : array<mixed,integer>
Get TLRBHV Border Size
None found |
setBorderSize(integer $value = null) : self
Set TLRBHV Border Size
integer | $value | Border size in eighths of a point (1/8 point) |
None found |
getBorderColor() : array<mixed,string>
Get TLRBHV Border Color
None found |
setBorderColor(string $value = null) : self
Set TLRBHV Border Color
string | $value |
None found |
getBorderStyle() : array<mixed,string>
Get border style
None found |
setBorderStyle(string $value = null) : self
Set border style
string | $value |
None found |
None found |
setBorderTopSize(integer|float $value = null) : self
Set border top size
integer|float | $value |
None found |
None found |
setBorderTopColor(string $value = null) : self
Set border top color
string | $value |
None found |
None found |
setBorderTopStyle(string $value = null) : self
Set border top Style
string | $value |
None found |
None found |
setBorderLeftSize(integer|float $value = null) : self
Set border left size
integer|float | $value |
None found |
None found |
setBorderLeftColor(string $value = null) : self
Set border left color
string | $value |
None found |
None found |
setBorderLeftStyle(string $value = null) : self
Set border left style
string | $value |
None found |
getBorderRightSize() : integer|float
Get border right size
None found |
setBorderRightSize(integer|float $value = null) : self
Set border right size
integer|float | $value |
None found |
None found |
setBorderRightColor(string $value = null) : self
Set border right color
string | $value |
None found |
None found |
setBorderRightStyle(string $value = null) : self
Set border right style
string | $value |
None found |
getBorderBottomSize() : integer|float
Get border bottom size
None found |
setBorderBottomSize(integer|float $value = null) : self
Set border bottom size
integer|float | $value |
None found |
None found |
setBorderBottomColor(string $value = null) : self
Set border bottom color
string | $value |
None found |
None found |
setBorderBottomStyle(string $value = null) : self
Set border bottom style
string | $value |
None found |
None found |
None found |
setStyleName(string $value) : self
Set style name
string | $value |
None found |
None found |
setIndex(integer|null $value = null) : self
Set index number
integer|null | $value |
None found |
None found |
setAuto(boolean $value = true) : self
Set is automatic style flag
boolean | $value |
None found |
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 |
since | 0.12.0 |
---|
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 |
setStyleByArray(array $values = array()) : self
Set style by using associative array
array | $values |
None found |
setArrayStyle(array $style = array()) : self
Set style using associative array
array | $style |
codeCoverageIgnore |
---|
__construct(mixed $tableStyle = null, mixed $firstRowStyle = null)
Create new table style
mixed | $tableStyle | |
mixed | $firstRowStyle |
None found |
setCellSpacing(float|integer $cellSpacing = null)
float|integer | $cellSpacing |
None found |
None found |
getFirstRow() : \PhpOffice\PhpWord\Style\Table
Set first row
None found |
None found |
setBgColor(string $value = null) : self
Set background
string | $value |
None found |
getBorderInsideHSize() : integer
Get border size inside horizontal
None found |
setBorderInsideHSize(integer $value = null) : self
Set border size inside horizontal
integer | $value |
None found |
getBorderInsideHColor() : string
Get border color inside horizontal
None found |
setBorderInsideHColor(string $value = null) : self
Set border color inside horizontal
string | $value |
None found |
getBorderInsideVSize() : integer
Get border size inside vertical
None found |
setBorderInsideVSize(integer $value = null) : self
Set border size inside vertical
integer | $value |
None found |
getBorderInsideVColor() : string
Get border color inside vertical
None found |
setBorderInsideVColor(string $value = null) : self
Set border color inside vertical
string | $value |
None found |
None found |
setCellMarginTop(integer $value = null) : self
Set cell margin top
integer | $value |
None found |
None found |
setCellMarginLeft(integer $value = null) : self
Set cell margin left
integer | $value |
None found |
None found |
setCellMarginRight(integer $value = null) : self
Set cell margin right
integer | $value |
None found |
None found |
setCellMarginBottom(integer $value = null) : self
Set cell margin bottom
integer | $value |
None found |
None found |
setCellMargin(integer $value = null) : self
Set TLRB cell margin
integer | $value | Margin in twips |
None found |
None found |
getShading() : \PhpOffice\PhpWord\Style\Shading
Get shading
None found |
setShading(mixed $value = null) : self
Set shading
mixed | $value |
None found |
since | 0.13.0 |
---|
since | 0.13.0 |
---|
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
None found |
setWidth(integer|float $value = null) : self
Set width
integer|float | $value |
None found |
None found |
None found |
None found |
None found |
getPosition() : \PhpOffice\PhpWord\Style\TablePosition
Get position
None found |
setPosition(mixed $value = null) : self
Set position
mixed | $value |
None found |
getIndent() : \PhpOffice\PhpWord\ComplexType\TblWidth
None found |
setIndent(\PhpOffice\PhpWord\ComplexType\TblWidth $indent) : self
\PhpOffice\PhpWord\ComplexType\TblWidth | $indent |
None found |
getColumnWidths() : array<mixed,\PhpOffice\PhpWord\Style\number>
Get the columnWidths
None found |
setColumnWidths(array<mixed,integer> $value = null)
The column widths
array<mixed,integer> | $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 |
getTableOnlyProperty(string $property) : integer|string|null
Get table style only property by checking if it's a firstRow
This is necessary since firstRow style is cloned from table style but without certain properties activated, e.g. margins
string | $property |
None found |
setTableOnlyProperty(string $property, integer|string $value, boolean $isNumeric = true) : self
Set table style only property by checking if it's a firstRow
This is necessary since firstRow style is cloned from table style but without certain properties activated, e.g. margins
string | $property | |
integer|string | $value | |
boolean | $isNumeric |
None found |