Table of contents
Namespace: Com\Tecnick\Pdf
enum TextHAlign: string
Source: src/TextHAlign.php:35
Backed enum for the horizontal alignment of text inside a cell: L (left), C (center), R (right) or J (justify).
Cases
Methods
fromLoose()
Resolve a loose horizontal alignment value to the matching enum case.
Accepts L, C, R or J (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Unknown values fall back to Left, matching the cell horizontal alignment default.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Horizontal alignment or enum case.
Returns: self
Source: src/TextHAlign.php:54