Table
Available Table style options:
alignment. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012. See\PhpOffice\PhpWord\SimpleType\JcTableand\PhpOffice\PhpWord\SimpleType\Jcclass constants for possible values.bgColor. Background color, e.g. '9966CC'.border(Top|Right|Bottom|Left)Color. Border color, e.g. '9966CC'.border(Top|Right|Bottom|Left)Size. Border size in twip.cellMargin(Top|Right|Bottom|Left). Cell margin in twip.indent. Table indent from leading margin. Must be an instance of\PhpOffice\PhpWord\ComplexType\TblWidth.width. Table width in Fiftieths of a Percent or Twentieths of a Point.unit. The unit to use for the width. One of\PhpOffice\PhpWord\SimpleType\TblWidth. Defaults to auto.layout. Table layout, either fixed or autofit See\PhpOffice\PhpWord\Style\Tablefor constants.cellSpacingCell spacing in twippositionFloating Table Positioning, see below for optionsbidiVisualPresent table as Right-To-Left
Floating Table Positioning options:
leftFromTextDistance From Left of Table to Text in twiprightFromTextDistance From Right of Table to Text in twiptopFromTextDistance From Top of Table to Text in twipbottomFromTextDistance From Top of Table to Text in twipvertAnchorTable Vertical Anchor, one of\PhpOffice\PhpWord\Style\TablePosition::VANCHOR_*horzAnchorTable Horizontal Anchor, one of\PhpOffice\PhpWord\Style\TablePosition::HANCHOR_*tblpXSpecRelative Horizontal Alignment From Anchor, one of\PhpOffice\PhpWord\Style\TablePosition::XALIGN_*tblpXAbsolute Horizontal Distance From Anchorin twiptblpYSpecRelative Vertical Alignment From Anchor, one of\PhpOffice\PhpWord\Style\TablePosition::YALIGN_*tblpYAbsolute Vertical Distance From Anchorin twip
Available Row style options:
cantSplit. Table row cannot break across pages, true or false.exactHeight. Row height is exact or at least.tblHeader. Repeat table row on every new page, true or false.
Available Cell style options:
bgColor. Background color, e.g. '9966CC'.border(Top|Right|Bottom|Left)Color. Border color, e.g. '9966CC'.border(Top|Right|Bottom|Left)Size. Border size in twip.border(Top|Right|Bottom|Left)Style. Border style. You can use constants from\PhpOffice\PhpWord\SimpleType\BordergridSpan. Number of columns spanned.textDirection(btLr|tbRl). Direction of text. You can use constants\PhpOffice\PhpWord\Style\Cell::TEXT_DIR_BTLRand\PhpOffice\PhpWord\Style\Cell::TEXT_DIR_TBRLvalign. Vertical alignment, top, center, both, bottom.vMerge. restart or continue.width. Cell width in twip.