The PivotOpenXlsxStyle class specifies the styling for cells in an Excel worksheet.
PivotOpenXlsxStyleObject of R6Class with properties and methods that help
define styles.
R6Class object.
parentPivotOwning pivot table.
baseStyleNameThe name of the base style in the pivot table.
isBaseStyleTRUE when this style is the equivalent of a named style in the pivot table, FALSE if this style has additional settings over and above the base style of the same name.
fontNameThe name of the font (single font name, not a CSS style list).
fontSizeThe size of the font (units: point).
boldTRUE if text is bold.
italicTRUE if text is italic.
underlineTRUE if text is underlined.
strikethroughTRUE if text has a line through it.
superscriptTRUE if text is small and raised.
subscriptTRUE if text is small and lowered.
fillColorThe background colour for the cell (as a hex value, e.g. #00FF00).
textColorThe color of the text (as a hex value).
hAlignThe horizontal alignment of the text: left, center or right.
vAlignThe vertical alignment of the text: top, middle or bottom.
wrapTextTRUE if the text is allowed to wrap onto multiple lines.
textRotationThe rotation angle of the text or 255 for vertical.
borderA list (with elements style and color) specifying the border settings for all four sides of each cell at once.
borderLeftA list (with elements style and color) specifying the border settings for the left border of each cell.
borderRightA list (with elements style and color) specifying the border settings for the right border of each cell.
borderTopA list (with elements style and color) specifying the border settings for the top border of each cell.
borderBottomA list (with elements style and color) specifying the border settings for the bottom border of each cell.
valueFormatThe Excel formatting applied to the field value. One of the following values: GENERAL, NUMBER, CURRENCY, ACCOUNTING, DATE, LONGDATE, TIME, PERCENTAGE, FRACTION, SCIENTIFIC, TEXT, COMMA. Or for dates/datetimes, a combination of d, m, y. Or for numeric values, use 0.00 etc.
minColumnWidthThe minimum width of this column.
minRowHeightThe minimum height of this row.
For more complete explanations and examples please see the extensive vignettes supplied with this package.
new(...)Create a new Excel style, specifying the field values documented above.
isBasicStyleNameMatch(baseStyleName=NULL)Find a matching base style by name.
isFullStyleDetailMatch = function(baseStyleName=NULL,
isBaseStyle=NULL, fontName=NULL, fontSize=NULL, bold=NULL, italic=NULL,
underline=NULL, strikethrough=NULL, superscript=NULL, subscript=NULL,
fillColor=NULL, textColor=NULL, hAlign=NULL, vAlign=NULL, wrapText=NULL,
textRotation=NULL, indent=NULL, borderAll=NULL, borderLeft=NULL,
borderRight=NULL, borderTop=NULL, borderBottom=NULL, valueFormat=NULL,
minColumnWidth=NULL, minRowHeight=NULLFind a matching style matching on all the attributes of the style.
createOpenXslxStyle()Create the openxlsx style.
asList()Get a list representation of this style.
asJSON()Get a JSON representation of this style.
asString()Get a text representation of this style.
# NOT RUN {
# PivotOpenXlsxStyle objects are created by the PivotOpenXlsxRenderer class.
# See that class for details.
# }
Run the code above in your browser using DataLab