<!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>The Vtiful\Kernel\Format class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="vtiful-kernel-excel.setRow.html">Vtiful\Kernel\Excel::setRow</a></div> <div class="next" style="text-align: right; float: right;"><a href="vtiful-kernel-format.align.html">Vtiful\Kernel\Format::align</a></div> <div class="up"><a href="book.xlswriter.html">XLSWriter</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.vtiful-kernel-format" class="reference"> <h1 class="title">The Vtiful\Kernel\Format class</h1> <div class="partintro"><p class="verinfo">(PHP 7 >= 7.0.0, PECL xlswriter >= 1.2.1)</p> <div class="section" id="vtiful-kernel-format.intro"> <h2 class="title">Introduction</h2> <p class="para"> Create a cell format object </p> </div> <div class="section" id="vtiful-kernel-format.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">Vtiful\Kernel\Format</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-left"><var class="varname">FORMAT_ALIGN_LEFT</var></a></var> <span class="initializer"> = 1</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-center"><var class="varname">FORMAT_ALIGN_CENTER</var></a></var> <span class="initializer"> = 2</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-right"><var class="varname">FORMAT_ALIGN_RIGHT</var></a></var> <span class="initializer"> = 3</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-fill"><var class="varname">FORMAT_ALIGN_FILL</var></a></var> <span class="initializer"> = 4</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-justify"><var class="varname">FORMAT_ALIGN_JUSTIFY</var></a></var> <span class="initializer"> = 5</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-center-across"><var class="varname">FORMAT_ALIGN_CENTER_ACROSS</var></a></var> <span class="initializer"> = 6</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-distributed"><var class="varname">FORMAT_ALIGN_DISTRIBUTED</var></a></var> <span class="initializer"> = 7</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-vertical-top"><var class="varname">FORMAT_ALIGN_VERTICAL_TOP</var></a></var> <span class="initializer"> = 8</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-vertical-bottom"><var class="varname">FORMAT_ALIGN_VERTICAL_BOTTOM</var></a></var> <span class="initializer"> = 9</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-vertical-center"><var class="varname">FORMAT_ALIGN_VERTICAL_CENTER</var></a></var> <span class="initializer"> = 10</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-vertical-justify"><var class="varname">FORMAT_ALIGN_VERTICAL_JUSTIFY</var></a></var> <span class="initializer"> = 11</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.format-align-vertical-distributed"><var class="varname">FORMAT_ALIGN_VERTICAL_DISTRIBUTED</var></a></var> <span class="initializer"> = 12</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.underline-single"><var class="varname">UNDERLINE_SINGLE</var></a></var> <span class="initializer"> = 1</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.underline-double"><var class="varname">UNDERLINE_DOUBLE</var></a></var> <span class="initializer"> = 2</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.underline-single-accounting"><var class="varname">UNDERLINE_SINGLE_ACCOUNTING</var></a></var> <span class="initializer"> = 3</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">int</span> <var class="fieldsynopsis_varname"><a href="class.vtiful-kernel-format.html#vtiful-kernel-format.constants.underline-double-accounting"><var class="varname">UNDERLINE_DOUBLE_ACCOUNTING</var></a></var> <span class="initializer"> = 4</span> ;</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="vtiful-kernel-format.align.html" class="methodname">align</a></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$handle</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$style</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="vtiful-kernel-format.bold.html" class="methodname">bold</a></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$handle</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="vtiful-kernel-format.italic.html" class="methodname">italic</a></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$handle</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="vtiful-kernel-format.underline.html" class="methodname">underline</a></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$handle</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$style</code></span> )</div> }</div> </div> <div class="section" id="vtiful-kernel-format.constants"> <h2 class="title">Predefined Constants</h2> <dl> <dt id="vtiful-kernel-format.constants.format-align-left"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_LEFT</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-center"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_CENTER</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-right"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_RIGHT</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-fill"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_FILL</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-justify"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_JUSTIFY</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-center-across"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_CENTER_ACROSS</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-distributed"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_DISTRIBUTED</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-vertical-top"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_VERTICAL_TOP</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-vertical-bottom"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_VERTICAL_BOTTOM</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-vertical-center"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_VERTICAL_CENTER</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-vertical-justify"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_VERTICAL_JUSTIFY</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.format-align-vertical-distributed"><strong><code>Vtiful\Kernel\Format::FORMAT_ALIGN_VERTICAL_DISTRIBUTED</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.underline-single"><strong><code>Vtiful\Kernel\Format::UNDERLINE_SINGLE</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.underline-double"><strong><code>Vtiful\Kernel\Format::UNDERLINE_DOUBLE</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.underline-single-accounting"><strong><code>Vtiful\Kernel\Format::UNDERLINE_SINGLE_ACCOUNTING</code></strong></dt> <dd> <p class="para"/> </dd> <dt id="vtiful-kernel-format.constants.underline-double-accounting"><strong><code>Vtiful\Kernel\Format::UNDERLINE_DOUBLE_ACCOUNTING</code></strong></dt> <dd> <p class="para"/> </dd> </dl> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="vtiful-kernel-format.align.html">Vtiful\Kernel\Format::align</a> — Vtiful\Kernel\Format align</li><li><a href="vtiful-kernel-format.bold.html">Vtiful\Kernel\Format::bold</a> — Vtiful\Kernel\Format bold</li><li><a href="vtiful-kernel-format.italic.html">Vtiful\Kernel\Format::italic</a> — Vtiful\Kernel\Format italic</li><li><a href="vtiful-kernel-format.underline.html">Vtiful\Kernel\Format::underline</a> — Vtiful\Kernel\Format underline</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="vtiful-kernel-excel.setRow.html">Vtiful\Kernel\Excel::setRow</a></div> <div class="next" style="text-align: right; float: right;"><a href="vtiful-kernel-format.align.html">Vtiful\Kernel\Format::align</a></div> <div class="up"><a href="book.xlswriter.html">XLSWriter</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>