Get if the font is in italic or not.
1 excel.Cell.getFontItalic
<excel.Cell.getFontItalic>
<cl /> +
</excel.Cell.getFontItalic>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecl | Cell | Cell. |
Returns | |
---|---|
Type | Description |
boolean | If the font is in italic or not. |
Example
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <set name="sheet_1"> <excel.Workbook.createSheet name="Hoja 1"> <wb/> </excel.Workbook.createSheet> </set> <set name="cell_r2c5"> <excel.Sheet.createCell row="15" col="3"> <sheet_1/> </excel.Sheet.createCell> </set> <excel.Cell.setCellStyle css="font-size: 20; font-color: red; font-weight: bold; font-name: arial; "> <wb/> <excel.Cell.setCellValue> <cell_r2c5/> <string>CELDA DE PRUEBA</string> </excel.Cell.setCellValue> </excel.Cell.setCellStyle> <println>Font bold weight: <excel.Cell.getFontBoldweight> <wb/> <cell_r2c5/> </excel.Cell.getFontBoldweight> </println> <println>Font color: <excel.Cell.getFontColor> <wb/> <cell_r2c5/> </excel.Cell.getFontColor> </println> <println>Font italic: <excel.Cell.getFontItalic> <wb/> <cell_r2c5/> </excel.Cell.getFontItalic> </println> <println>Font name: <excel.Cell.getFontName> <wb/> <cell_r2c5/> </excel.Cell.getFontName> </println> <println>Font size <excel.Cell.getFontSize> <wb/> <cell_r2c5/> </excel.Cell.getFontSize> </println> <println>Font strikeout: <excel.Cell.getFontStrikeout> <wb/> <cell_r2c5/> </excel.Cell.getFontStrikeout> </println> <println>Font underline: <excel.Cell.getFontUnderline> <wb/> <cell_r2c5/> </excel.Cell.getFontUnderline> </println> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>