Table of contents
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
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
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