XLSWriter Vtiful\Kernel\Excel::setRow
(PECL xlswriter >= 1.2.1)
Vtiful\Kernel\Excel::setRow — Vtiful\Kernel\Excel setRow
설명
public Vtiful\Kernel\Excel::setRow(string $range
, float $height
, resource $format
= ?)
열의 형식을 설정합니다.
매개변수
range
- 셀 시작 및 끝 좌표 문자열
height
- row height
format
- cell format resource
반환 값
Vtiful\Kernel\Excel 인스턴스
Examples
예제 #1 예제
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$boldStyle = \Vtiful\Kernel\Format::bold($fileHandle);
$fileObject->header(['name', 'age'])
->data([['viest', 21]])
->setRow('A1', 20, $boldStyle,)
->output();