getStyles: Returns a list of all styles in the workbook

Description Usage Arguments See Also Examples

View source: R/wrappers.R

Description

Returns list of style objects in the workbook

Usage

1

Arguments

wb

A workbook object

See Also

replaceStyle

Examples

1
2
3
## load a workbook 
wb <- loadWorkbook(file = system.file("loadExample.xlsx", package = "openxlsx"))
getStyles(wb)[1:3]

Example output

[[1]]
A custom cell style. 

 Cell formatting: GENERAL 
 Font name: Calibri 
 Font size: 11 
 Font colour: 10 
 Font decoration: UNDERLINE 
 Cell horz. align: left 
 


[[2]]
A custom cell style. 

 Cell formatting: GENERAL 
 Cell horz. align: center 
 wraptext: TRUE 


[[3]]
A custom cell style. 

 Cell formatting: GENERAL 
 

openxlsx documentation built on May 26, 2018, 5:04 p.m.