TableStyle
class TableStyle
Defines the styles for a Table.
Methods
Sets padding character, used for cell padding.
Gets padding character, used for cell padding.
Sets horizontal border characters.
Sets vertical border characters.
Gets border characters.
Sets crossing characters.
Sets default crossing character used for each cross.
Gets crossing character.
Gets crossing characters.
Sets header cell format.
Gets header cell format.
Sets row cell format.
Gets row cell format.
Sets row cell content format.
Gets row cell content format.
Sets table border format.
Gets table border format.
Sets cell padding type.
Gets cell padding type.
No description
No description
No description
No description
Details
TableStyle
setHorizontalBorderChars(string $outside, string $inside = null)
Sets horizontal border characters.
╔═══════════════╤══════════════════════════╤══════════════════╗
1 ISBN 2 Title │ Author ║
╠═══════════════╪══════════════════════════╪══════════════════╣
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
╚═══════════════╧══════════════════════════╧══════════════════╝
$this
setHorizontalBorderChar(string $horizontalBorderChar)
deprecated
deprecated since Symfony 4.1, use {@link setHorizontalBorderChars()} instead.
Sets horizontal border character.
string
getHorizontalBorderChar()
deprecated
deprecated since Symfony 4.1, use {@link getBorderChars()} instead.
Gets horizontal border character.
TableStyle
setVerticalBorderChars(string $outside, string $inside = null)
Sets vertical border characters.
╔═══════════════╤══════════════════════════╤══════════════════╗
║ ISBN │ Title │ Author ║
╠═══════1═══════╪══════════════════════════╪══════════════════╣
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
╟───────2───────┼──────────────────────────┼──────────────────╢
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
╚═══════════════╧══════════════════════════╧══════════════════╝
$this
setVerticalBorderChar(string $verticalBorderChar)
deprecated
deprecated since Symfony 4.1, use {@link setVerticalBorderChars()} instead.
Sets vertical border character.
string
getVerticalBorderChar()
deprecated
deprecated since Symfony 4.1, use {@link getBorderChars()} instead.
Gets vertical border character.
TableStyle
setCrossingChars(string $cross, string $topLeft, string $topMid, string $topRight, string $midRight, string $bottomRight, string $bottomMid, string $bottomLeft, string $midLeft, string $topLeftBottom = null, string $topMidBottom = null, string $topRightBottom = null)
Sets crossing characters.
Example:
1═══════════════2══════════════════════════2══════════════════3
║ ISBN │ Title │ Author ║
8'══════════════0'═════════════════════════0'═════════════════4'
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
8───────────────0──────────────────────────0──────────────────4
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
7═══════════════6══════════════════════════6══════════════════5
TableStyle
setDefaultCrossingChar(string $char)
Sets default crossing character used for each cross.