powered by
add dxfs style 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 wbWorkbookObject, invisibly
wbWorkbookObject
wbWorkbook
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()
wb <- wb_workbook() %>% wb_add_worksheet() %>% wb_add_dxfs_style( name = "nay", font_color = wb_color(hex = "FF9C0006"), bgFill = wb_color(hex = "FFFFC7CE") )
Run the code above in your browser using DataLab