TextVAlign

Backed enum for the vertical alignment of text inside a cell: T (top), C (center), B (bottom), A (center on font ascent), L (center on font baseline) or D (center on font descent).

Namespace: Com\Tecnick\Pdf

Backing type: string

File: TextVAlign.php line 36

Backed enum for the vertical alignment of text inside a cell: T (top), C (center), B (bottom), A (center on font ascent), L (center on font baseline) or D (center on font descent).

Tags

Cases

Top

File: TextVAlign.php line 39

Center

File: TextVAlign.php line 42

Bottom

File: TextVAlign.php line 45

Ascent

File: TextVAlign.php line 48

Baseline

File: TextVAlign.php line 51

Descent

File: TextVAlign.php line 54

Methods

fromLoose()

File: TextVAlign.php line 65

public static fromLoose(string|self $value) : self

Accepts T, C, B, A, L or D (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Unknown values fall back to Center, matching the cell vertical alignment default.

Parameters

  • $value : string|self: Vertical alignment or enum case.

Return values

self