\PhpOffice\PhpWord\SimpleTypeJc

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.

Summary

Methods
Properties
Constants
values()
isValid()
validate()
No public properties found
START
CENTER
END
BOTH
MEDIUM_KASHIDA
DISTRIBUTE
NUM_TAB
HIGH_KASHIDA
LOW_KASHIDA
THAI_DISTRIBUTE
LEFT
RIGHT
JUSTIFY
No protected methods found
No protected properties found
N/A
getConstants()
$constCacheArray
N/A

Constants

START

START = 'start'

CENTER

CENTER = 'center'

END

END = 'end'

BOTH

BOTH = 'both'

MEDIUM_KASHIDA

MEDIUM_KASHIDA = 'mediumKashida'

DISTRIBUTE

DISTRIBUTE = 'distribute'

NUM_TAB

NUM_TAB = 'numTab'

HIGH_KASHIDA

HIGH_KASHIDA = 'highKashida'

LOW_KASHIDA

LOW_KASHIDA = 'lowKashida'

THAI_DISTRIBUTE

THAI_DISTRIBUTE = 'thaiDistribute'

LEFT

LEFT = 'left'

Kept for compatibility with 1st edition of ECMA-376 standard.

Microsoft Word 2007 and WPS Writer 2016 still rely on it.

RIGHT

RIGHT = 'right'

Kept for compatibility with 1st edition of ECMA-376 standard.

Microsoft Word 2007 and WPS Writer 2016 still rely on it.

JUSTIFY

JUSTIFY = 'justify'

Kept for compatibility with 1st edition of ECMA-376 standard.

Microsoft Word 2007 and WPS Writer 2016 still rely on it.

Properties

$constCacheArray

$constCacheArray : 

Type

Methods

values()

values() : array

Returns all values for this enum

Returns

array

isValid()

isValid(string  $value) : boolean

Returns true the value is valid for this enum

Parameters

string $value

Returns

boolean —

true if value is valid

validate()

validate(string  $value) 

Validates that the value passed is a valid value

Parameters

string $value

Throws

\InvalidArgumentException

if the value passed is not valid for this enum

getConstants()

getConstants()