powered by
These styles are used with conditional formatting and custom table styles.
wb_add_dxfs_style( wb, name, font_name = NULL, font_size = NULL, font_color = NULL, num_fmt = NULL, border = NULL, border_color = wb_color(getOption("openxlsx2.borderColor", "black")), border_style = getOption("openxlsx2.borderStyle", "thin"), bg_fill = NULL, gradient_fill = NULL, text_bold = NULL, text_italic = NULL, text_underline = NULL, ... )
The Workbook object, invisibly
A Workbook object.
the style name
the font name
the font size
the font color (a wb_color() object)
wb_color()
the number format
logical if borders are applied
the border color
the border style
any background fill
any gradient fill
logical if text is bold
logical if text is italic
logical if text is underlined
additional arguments passed to create_dxfs_style()
create_dxfs_style()
Other workbook styling functions: base_font-wb, wb_add_style(), wb_base_colors
base_font-wb
wb_add_style()
wb_base_colors
wb <- wb_workbook() %>% wb_add_worksheet() %>% wb_add_dxfs_style( name = "nay", font_color = wb_color(hex = "FF9C0006"), bg_fill = wb_color(hex = "FFFFC7CE") )
Run the code above in your browser using DataLab