UNIT_PT
UNIT_PT = 'pt'
Length unit
Image and memory image style
Width, height, left/hpos, top/vpos, hrel, vrel, wrap, zindex
| codeCoverageIgnore |
|---|
| None found |
| None found |
| None found |
setWidth(integer|float $value = null) : self
Set width
| integer|float | $value |
| None found |
| None found |
setHeight(integer|float $value = null) : self
Set height
| integer|float | $value |
| None found |
| None found |
setLeft(integer|float $value) : self
Set left
| integer|float | $value |
| None found |
| None found |
setTop(integer|float $value) : self
Set topmost position
| integer|float | $value |
| None found |
| None found |
| None found |
| None found |
setHPos(string $value) : self
Set horizontal position
| string | $value |
| since |
0.12.0 "absolute" option is available. |
|---|
| None found |
| since |
0.12.0 "absolute" option is available. |
|---|
| None found |
setHPosRelTo(string $value) : self
Set horizontal position relative to
| string | $value |
| None found |
| None found |
setVPosRelTo(string $value) : self
Set vertical position relative to
| string | $value |
| None found |
| None found |
| None found |
| None found |
setWrapDistanceTop(integer $value = null) : self
Set top distance from text wrap
| integer | $value |
| None found |
getWrapDistanceBottom() : float
Get bottom distance from text wrap
| None found |
setWrapDistanceBottom(float $value = null) : self
Set bottom distance from text wrap
| float | $value |
| None found |
| None found |
setWrapDistanceLeft(float $value = null) : self
Set left distance from text wrap
| float | $value |
| None found |
getWrapDistanceRight() : float
Get right distance from text wrap
| None found |
setWrapDistanceRight(float $value = null) : self
Set right distance from text wrap
| float | $value |
| None found |
| None found |
setPosition(integer $value = null) : self
Set position
| integer | $value |
| 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 |
|---|
| None found |
setMarginTop(integer|float $value) : self
Set margin top
| integer|float | $value |
| ignoreScrutinizerPatch |
|---|
| None found |
setMarginLeft(integer|float $value) : self
Set margin left
| integer|float | $value |
| ignoreScrutinizerPatch |
|---|
| None found |
setWrappingStyle(string $wrappingStyle) : self
Set wrapping style
| string | $wrappingStyle |
| None found |
| None found |
setPositioning(string $positioning) : self
Set positioning type
| string | $positioning |
| None found |
| None found |
setPosHorizontal(string $alignment) : self
Set horizontal alignment
| string | $alignment |
| None found |
| None found |
setPosVertical(string $alignment) : self
Set vertical alignment
| string | $alignment |
| None found |
| None found |
setPosHorizontalRel(string $relto) : self
Set horizontal relation
| string | $relto |
| None found |
| None found |
setPosVerticalRel(string $relto) : self
Set vertical relation
| string | $relto |
| 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 |