缩进
函数原型
indent(int $level): selfint $level
示例
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName('tutorial.xlsx');
$fileHandle = $fileObject->getHandle();
$level1 = (new \Vtiful\Kernel\Format($fileHandle))
->indent(1)
->toResource();
$level3 = (new \Vtiful\Kernel\Format($fileHandle))
->indent(3)
->toResource();
$fileObject->header(['title'])
->insertText(1, 0, '一级缩进', null, $level1)
->insertText(2, 0, '三级缩进', null, $level3)
->output();Last updated