UNDERLINE_NONE
UNDERLINE_NONE = 'none'
Underline types
Font style
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 |
$isAuto : boolean
Is this an automatic style? (Used primarily in OpenDocument driver)
since | 0.11.0 |
---|
None found |
None found |
None found |
since | 0.12.0 |
---|
since | 0.12.0 |
---|
since | 0.12.0 |
---|
$paragraph : \PhpOffice\PhpWord\Style\Paragraph
Paragraph style
None found |
$shading : \PhpOffice\PhpWord\Style\Shading
Shading
None found |
$noProof : boolean
noProof (disables AutoCorrect)
None found |
$lang : \PhpOffice\PhpWord\Style\Language
Languages
None found |
$position : integer
Vertically Raised or Lowered Text
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(string $type = 'text', array|string|\PhpOffice\PhpWord\Style\AbstractStyle $paragraph = null)
Create new font style
string | $type | Type of font |
array|string|\PhpOffice\PhpWord\Style\AbstractStyle | $paragraph | Paragraph styles definition |
None found |
since | 0.12.0 |
---|
None found |
None found |
None found |
None found |
setHint(string $value = null) : self
Set Font Content Type
string | $value |
None found |
None found |
setSize(integer|float $value = null) : self
Set font size
integer|float | $value |
None found |
None found |
setColor(string $value = null) : self
Set font color
string | $value |
None found |
None found |
None found |
None found |
setItalic(boolean $value = true) : self
Set italic
boolean | $value |
None found |
None found |
setUnderline(string $value = self::UNDERLINE_NONE) : self
Set underline
string | $value |
None found |
None found |
setSuperScript(boolean $value = true) : self
Set superscript
boolean | $value |
None found |
None found |
setSubScript(boolean $value = true) : self
Set subscript
boolean | $value |
None found |
None found |
setStrikethrough(boolean $value = true) : self
Set strikethrough
boolean | $value |
None found |
None found |
setDoubleStrikethrough(boolean $value = true) : self
Set double strikethrough
boolean | $value |
None found |
None found |
setSmallCaps(boolean $value = true) : self
Set small caps
boolean | $value |
None found |
None found |
setAllCaps(boolean $value = true) : self
Set all caps
boolean | $value |
None found |
None found |
setFgColor(string $value = null) : self
Set foreground/highlight color
string | $value |
None found |
None found |
setBgColor(string $value = null) : \PhpOffice\PhpWord\Style\Table
Set background
string | $value |
None found |
None found |
None found |
None found |
setSpacing(integer|float $value = null) : self
Set font spacing
integer|float | $value |
None found |
None found |
setKerning(integer|float $value = null) : self
Set font kerning
integer|float | $value |
None found |
None found |
setNoProof(boolean $value = false) : $this
Set noProof (disables autocorrect)
boolean | $value |
None found |
None found |
setLineHeight(integer|float|string $value) : self
Set lineheight
integer|float|string | $value |
None found |
getParagraph() : \PhpOffice\PhpWord\Style\Paragraph
Get paragraph style
None found |
setParagraph(mixed $value = null) : self
Set Paragraph
mixed | $value |
None found |
None found |
None found |
getShading() : \PhpOffice\PhpWord\Style\Shading
Get shading
None found |
setShading(mixed $value = null) : self
Set shading
mixed | $value |
None found |
getLang() : \PhpOffice\PhpWord\Style\Language
Get language
None found |
None found |
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
codeCoverageIgnore |
---|
None found |
setPosition(integer $value = null) : self
Set position
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 |