Vtiful\Kernel\Format::italic

(PECL xlswriter >= 1.2.1)

Vtiful\Kernel\Format::italicУстанавливает курсивное начертание

Описание

public Vtiful\Kernel\Format::italic(resource $handle)

Метод устанавливает курсивное начертание для объекта Vtiful\Kernel\Format.

Список параметров

handle

Дескриптор XLSX-файла.

Возвращаемые значения

Метод возвращает ресурс.

Примеры

Пример #1 Пример установки курсива

<?php

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

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

$format = new \Vtiful\Kernel\Format($excel->getHandle());
$italicStyle = $format->italic()->toResource();

$excel->header(['name', 'age'])
->
data([['viest', 21]])
->
setColumn('A:A', 200, $italicStyle)
->
output()
;

?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top