2024 年 PHP Conference Japan

Vtiful\Kernel\Format::underline

(PECL xlswriter >= 1.2.1)

Vtiful\Kernel\Format::underlineVtiful\Kernel\Format 底線

說明

public Vtiful\Kernel\Format::underline(資源 $handle, int $style)

Vtiful\Kernel\Format 底線格式

參數

handle

xlsx 檔案控制代碼

style

Vtiful\Kernel\Format 常數

回傳值

資源

範例

範例 #1 底線樣式範例

<?php
$config
= [
'path' => './tests'
];

$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');

$format = new \Vtiful\Kernel\Format($excel->getHandle());
$underlineStyle = $format->underline(\Vtiful\Kernel\Format::UNDERLINE_SINGLE)->toResource();

$excel->header(['name', 'age'])
->
data([['viest', 21]])
->
setColumn('A:A', 200, $underlineStyle)
->
output();
?>
新增註釋

使用者貢獻的註釋

此頁面沒有使用者貢獻的註釋。
To Top