public class Format extends Object:
Cell format used by an XLSX workbook.
The initial API intentionally covers the formatting used by the export tests: bold text, font color and background color. Unsupported options are ignored so caller code can progressively move closer to the Python XlsxWriter option dictionaries without breaking.
@example `klyn import klyn.io.xlsx
workbook = Workbook("report.xlsx") header = workbook.addFormat({"bold": true, "font_color": "white", "bg_color": "gray"}) workbook.addWorksheet("Data").write("A1", "Name", header) workbook.close()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | backgroundColorbackgroundColor as String: |
Background color as an ARGB value, or an empty string for no fill. |
| public readonly property | boldbold as Boolean: |
Returns true when the format uses a bold font. |
| public readonly property | fontColorfontColor as String: |
Font color as an ARGB value, or an empty string for the default color. |
| public readonly property | styleIndexstyleIndex as Int: |
Style index used in worksheet XML. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Format | Creates a standalone format from an option map. |