Jc
extends AbstractEnum
in package
Horizontal Alignment Type.
Introduced in 1st Edition of ECMA-376. Initially it was intended to align paragraphs and tables. Since ISO/IEC-29500:2008 the type must not be used for table alignment.
Tags
Table of Contents
Constants
- BOTH = 'both'
- CENTER = 'center'
- DISTRIBUTE = 'distribute'
- END = 'end'
- HIGH_KASHIDA = 'highKashida'
- JUSTIFY = 'justify'
- Kept for compatibility with 1st edition of ECMA-376 standard.
- LEFT = 'left'
- Kept for compatibility with 1st edition of ECMA-376 standard.
- LOW_KASHIDA = 'lowKashida'
- MEDIUM_KASHIDA = 'mediumKashida'
- NUM_TAB = 'numTab'
- RIGHT = 'right'
- Kept for compatibility with 1st edition of ECMA-376 standard.
- START = 'start'
- THAI_DISTRIBUTE = 'thaiDistribute'
Properties
- $constCacheArray : mixed
Methods
- isValid() : bool
- Returns true the value is valid for this enum.
- validate() : void
- Validates that the value passed is a valid value.
- values() : array<string|int, mixed>
- Returns all values for this enum.
- getConstants() : mixed
Constants
BOTH
public
mixed
BOTH
= 'both'
CENTER
public
mixed
CENTER
= 'center'
DISTRIBUTE
public
mixed
DISTRIBUTE
= 'distribute'
END
public
mixed
END
= 'end'
HIGH_KASHIDA
public
mixed
HIGH_KASHIDA
= 'highKashida'
JUSTIFY
Kept for compatibility with 1st edition of ECMA-376 standard.
For documents based on ISO/IEC 29500:2008 and later use BOTH
instead.
public
mixed
JUSTIFY
= 'justify'
Microsoft Word 2007 and WPS Writer 2016 still rely on it.
LEFT
Kept for compatibility with 1st edition of ECMA-376 standard.
For documents based on ISO/IEC 29500:2008 and later use START
instead.
public
mixed
LEFT
= 'left'
Microsoft Word 2007 and WPS Writer 2016 still rely on it.
LOW_KASHIDA
public
mixed
LOW_KASHIDA
= 'lowKashida'
MEDIUM_KASHIDA
public
mixed
MEDIUM_KASHIDA
= 'mediumKashida'
NUM_TAB
public
mixed
NUM_TAB
= 'numTab'
RIGHT
Kept for compatibility with 1st edition of ECMA-376 standard.
For documents based on ISO/IEC 29500:2008 and later use END
instead.
public
mixed
RIGHT
= 'right'
Microsoft Word 2007 and WPS Writer 2016 still rely on it.
START
public
mixed
START
= 'start'
THAI_DISTRIBUTE
public
mixed
THAI_DISTRIBUTE
= 'thaiDistribute'
Properties
$constCacheArray
private
static mixed
$constCacheArray
Methods
isValid()
Returns true the value is valid for this enum.
public
static isValid(string $value) : bool
Parameters
- $value : string
Return values
bool —true if value is valid
validate()
Validates that the value passed is a valid value.
public
static validate(string $value) : void
Parameters
- $value : string
values()
Returns all values for this enum.
public
static values() : array<string|int, mixed>
Return values
array<string|int, mixed>getConstants()
private
static getConstants() : mixed