LINE_HEIGHT
LINE_HEIGHT = 240
Paragraph style
OOXML:
OpenOffice:
$indentation : \PhpOffice\PhpWord\Style\Indentation
Indentation
$spacing : \PhpOffice\PhpWord\Style\Spacing
Spacing
$tabs : array<mixed,\PhpOffice\PhpWord\Style\Tab>
Set of Custom Tab Stops
$shading : \PhpOffice\PhpWord\Style\Shading
Shading
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 |
getStyleValues() : array
Get style values
An experiment to retrieve all style values in one function. This will reduce function call and increase cohesion between functions. Should be implemented in all styles.
| ignoreScrutinizerPatch |
|---|
| since | 0.13.0 |
|---|
| since | 0.13.0 |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| None found |
setBasedOn(string $value = 'Normal') : self
Set parent style ID
| string | $value |
| None found |
| None found |
setNext(string $value = null) : self
Set style for next paragraph
| string | $value |
| None found |
getIndentation() : \PhpOffice\PhpWord\Style\Indentation
Get shading
| None found |
setIndentation(mixed $value = null) : self
Set shading
| mixed | $value |
| None found |
| None found |
setIndent(integer $value = null) : self
Set indentation
| integer | $value |
| None found |
| None found |
setHanging(integer $value = null) : self
Set hanging
| integer | $value |
| None found |
getSpace() : \PhpOffice\PhpWord\Style\Spacing
Get spacing
| todo |
Rename to getSpacing in 1.0 |
|---|
| todo |
Rename to setSpacing in 1.0 |
|---|
| None found |
setSpaceBefore(integer $value = null) : self
Set space before paragraph
| integer | $value |
| None found |
| None found |
setSpaceAfter(integer $value = null) : self
Set space after paragraph
| integer | $value |
| None found |
| None found |
setSpacing(integer $value = null) : self
Set spacing between lines
| integer | $value |
| None found |
| None found |
setSpacingLineRule(string $value) : \PhpOffice\PhpWord\Style\Paragraph
Set the spacing line rule
| string | $value | Possible values are defined in LineSpacingRule |
| None found |
| None found |
setLineHeight(integer|float|string $lineHeight) : self
Set the line height
| integer|float|string | $lineHeight |
| None found |
hasWidowControl() : boolean
Get allow first/last line to display on a separate page setting
| None found |
setWidowControl(boolean $value = true) : self
Set keep paragraph with next paragraph setting
| boolean | $value |
| None found |
| None found |
setKeepNext(boolean $value = true) : self
Set keep paragraph with next paragraph setting
| boolean | $value |
| None found |
| None found |
setKeepLines(boolean $value = true) : self
Set keep all lines on one page setting
| boolean | $value |
| None found |
hasPageBreakBefore() : boolean
Get start paragraph on next page setting
| None found |
setPageBreakBefore(boolean $value = true) : self
Set start paragraph on next page setting
| boolean | $value |
| None found |
| None found |
setNumStyle(string $value) : self
Set numbering style name
| string | $value |
| None found |
| None found |
setNumLevel(integer $value) : self
Set numbering level
| integer | $value |
| None found |
getTabs() : array<mixed,\PhpOffice\PhpWord\Style\Tab>
Get tabs
| None found |
| None found |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
getShading() : \PhpOffice\PhpWord\Style\Shading
Get shading
| None found |
setShading(mixed $value = null) : self
Set shading
| mixed | $value |
| None found |
| None found |
setContextualSpacing(boolean $contextualSpacing) : self
Set contextualSpacing
| boolean | $contextualSpacing |
| None found |
| None found |
setBidi(boolean $bidi) : self
Set bidi
| boolean | $bidi | Set to true to write from right to left |
| None found |
| None found |
setTextAlignment(string $textAlignment) : self
Set textAlignment
| string | $textAlignment |
| None found |
| None found |
setSuppressAutoHyphens(boolean $suppressAutoHyphens)
| boolean | $suppressAutoHyphens |
| 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 |