Returns a struct showing the current formatting attributes of the specified cell in the active sheet.
getCellFormat( workbook, row, column );
workbook
row
column
Chainable? Yes but ends the chain.
The method returns a struct with the following keys:
alignment (string)
alignment
bold (boolean)
bold
bottomborder (string)
bottomborder
bottombordercolor (string): RGB Triplet, e.g. "255,0,0"
bottombordercolor
color (string): RGB Triplet, e.g. "255,0,0"
color
dataformat (string)
dataformat
fgcolor (string): RGB Triplet, e.g. "255,0,0"
fgcolor
fillpattern (string)
fillpattern
font (string)
font
fontsize (integer)
fontsize
indent (integer)
indent
italic (boolean)
italic
leftborder (string)
leftborder
leftbordercolor (string): RGB Triplet, e.g. "255,0,0"
leftbordercolor
rightborder (string)
rightborder
rightbordercolor (string): RGB Triplet, e.g. "255,0,0"
rightbordercolor
rotation (integer)
rotation
strikeout (boolean)
strikeout
topborder (string)
topborder
topbordercolor (string): RGB Triplet, e.g. "255,0,0"
topbordercolor
textwrap (boolean)
textwrap
underline (string) e.g. "single" or "double"
underline
verticalalignment
data = QueryNew( "First,Last", "VarChar,VarChar", [ [ "a","b" ] ] ); spreadsheet = New spreadsheet(); workbook = spreadsheet.workbookFromQuery( data ); spreadsheet.formatCell( workbook, { bold: true }, 1, 1 ); cellFormats = spreadsheet.getCellFormat( workbook, 1, 1 );
There was an error while loading. Please reload this page.