<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Vtiful\Kernel\Excel setRow</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="vtiful-kernel-excel.setColumn.html">Vtiful\Kernel\Excel::setColumn</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.vtiful-kernel-format.html">Vtiful\Kernel\Format</a></div> <div class="up"><a href="class.vtiful-kernel-excel.html">Vtiful\Kernel\Excel</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="vtiful-kernel-excel.setRow" class="refentry"> <div class="refnamediv"> <h1 class="refname">Vtiful\Kernel\Excel::setRow</h1> <p class="verinfo">(PHP 7 >= 7.0.0, PECL xlswriter >= 1.2.1)</p><p class="refpurpose"><span class="refname">Vtiful\Kernel\Excel::setRow</span> — <span class="dc-title">Vtiful\Kernel\Excel setRow</span></p> </div> <div class="refsect1 description" id="refsect1-vtiful-kernel-excel.setRow-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Vtiful\Kernel\Excel::setRow</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$range</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span> [, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$format</code></span> ] )</div> <p class="para rdfs-comment"> Set the format of the column. </p> </div> <div class="refsect1 parameters" id="refsect1-vtiful-kernel-excel.setRow-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">range</code></dt> <dd> <p class="para"> cell start and end coordinate strings </p> </dd> <dt> <code class="parameter">height</code></dt> <dd> <p class="para"> row height </p> </dd> <dt> <code class="parameter">format</code></dt> <dd> <p class="para"> cell format resource </p> </dd> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-vtiful-kernel-excel.setRow-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> <a href="class.vtiful-kernel-excel.html" class="classname">Vtiful\Kernel\Excel</a> instance </p> </div> <div class="refsect1 examples" id="refsect1-vtiful-kernel-excel.setRow-examples"> <h3 class="title">Examples</h3> <div class="example" id="example-4383"> <p><strong>Example #1 example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />$config </span><span style="color: #007700">= [<br /> </span><span style="color: #DD0000">'path' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'./tests'<br /></span><span style="color: #007700">];<br /><br /></span><span style="color: #0000BB">$excel </span><span style="color: #007700">= new \</span><span style="color: #0000BB">Vtiful</span><span style="color: #007700">\</span><span style="color: #0000BB">Kernel</span><span style="color: #007700">\</span><span style="color: #0000BB">Excel</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$fileObject </span><span style="color: #007700">= </span><span style="color: #0000BB">$excel</span><span style="color: #007700">-></span><span style="color: #0000BB">fileName</span><span style="color: #007700">(</span><span style="color: #DD0000">'tutorial01.xlsx'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$fileHandle </span><span style="color: #007700">= </span><span style="color: #0000BB">$fileObject</span><span style="color: #007700">-></span><span style="color: #0000BB">getHandle</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$boldStyle </span><span style="color: #007700">= \</span><span style="color: #0000BB">Vtiful</span><span style="color: #007700">\</span><span style="color: #0000BB">Kernel</span><span style="color: #007700">\</span><span style="color: #0000BB">Format</span><span style="color: #007700">::</span><span style="color: #0000BB">bold</span><span style="color: #007700">(</span><span style="color: #0000BB">$fileHandle</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$fileObject</span><span style="color: #007700">-></span><span style="color: #0000BB">header</span><span style="color: #007700">([</span><span style="color: #DD0000">'name'</span><span style="color: #007700">, </span><span style="color: #DD0000">'age'</span><span style="color: #007700">])<br /> -></span><span style="color: #0000BB">data</span><span style="color: #007700">([[</span><span style="color: #DD0000">'viest'</span><span style="color: #007700">, </span><span style="color: #0000BB">21</span><span style="color: #007700">]])<br /> -></span><span style="color: #0000BB">setRow</span><span style="color: #007700">(</span><span style="color: #DD0000">'A1'</span><span style="color: #007700">, </span><span style="color: #0000BB">20</span><span style="color: #007700">, </span><span style="color: #0000BB">$boldStyle</span><span style="color: #007700">,)<br /> -></span><span style="color: #0000BB">output</span><span style="color: #007700">();</span> </span> </code></div> </div> </div> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="vtiful-kernel-excel.setColumn.html">Vtiful\Kernel\Excel::setColumn</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.vtiful-kernel-format.html">Vtiful\Kernel\Format</a></div> <div class="up"><a href="class.vtiful-kernel-excel.html">Vtiful\Kernel\Excel</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>