Check documentation for the latest version of dhtmlxSuite getStyle DHTMLX Docs

getStyle

Gets the style set for the specified cell.

Parameters

  • $cell - (string) the cell coordinate (e.g. 'B1')

Return value

  • (array or false) the assigned style attributes, if the specified cell is stored in the database. If it's not, returns false.

Example

$sh = new SpreadSheet($res, "1", $db_prefix);   $style = $sh->getStyle("B2");

Details

The $style variable from the example above will have the value as in:

array ( "bold" => 1, "italic" => 0, "color" => '000000', "bgcolor" =>'ffffff', "align" => 'center', "validator" => 'none', "lock" => 0 );

See also: setStyle

Back to top