Align

Function Prototype

1
align(resource $resourchHandle, Format::const ...$style): \Vtiful\Kernel\Format
Copied!

Example

1
$format = new \Vtiful\Kernel\Format($fileHandle);
2
$alignStyle = $format
3
->align(Format::FORMAT_ALIGN_CENTER, Format::FORMAT_ALIGN_VERTICAL_CENTER)
4
->toResource();
Copied!

Style

1
Format::FORMAT_ALIGN_LEFT; // horizontally left aligned
2
Format::FORMAT_ALIGN_CENTER; // Align in horizontal drama
3
Format::FORMAT_ALIGN_RIGHT; // horizontal right alignment
4
Format::FORMAT_ALIGN_FILL; // horizontal fill alignment
5
Format::FORMAT_ALIGN_JUSTIFY; // Horizontal justification
6
Format::FORMAT_ALIGN_CENTER_ACROSS; // Horizontal center alignment
7
Format::FORMAT_ALIGN_DISTRIBUTED; // Disperse alignment
8
Format::FORMAT_ALIGN_VERTICAL_TOP; // top vertical alignment
9
Format::FORMAT_ALIGN_VERTICAL_BOTTOM; // bottom vertical alignment
10
Format::FORMAT_ALIGN_VERTICAL_CENTER; // Align in vertical drama
11
Format::FORMAT_ALIGN_VERTICAL_JUSTIFY; // Vertical justification
12
Format::FORMAT_ALIGN_VERTICAL_DISTRIBUTED; // Vertically dispersing alignment
Copied!
Last modified 2yr ago