chprop.textProperties
From ReporteRs v0.7.7
by David Gohel
Modify text formatting properties
Modify an object of class textProperties
.
Usage
## S3 method for class 'textProperties':
chprop(object, color, font.size, font.weight,
font.style, underlined, font.family, vertical.align, shading.color, ...)
Arguments
- object
textProperties
object to modify- color
- font color - a single character value specifying a valid color (e.g. "#000000" or "black").
- font.size
- font size (in point) - 0 or positive integer value.
- font.weight
- single character value specifying font weight
(expected value is
normal
orbold
). - font.style
- single character value specifying font style
(expected value is
normal
oritalic
). - underlined
- single logical value specifying if the font is underlined.
- font.family
- single character value specifying font name (it has to be an existing font in the OS).
- vertical.align
- single character value specifying font vertical alignments.
Expected value is one of the following : default
'baseline'
or'subscript'
or'superscript'
- shading.color
- shading color - a single character value specifying a valid color (e.g. "#000000" or "black").
- ...
- further arguments - not used
Value
- a
textProperties
object
See Also
Examples
#
textProp = textProperties()
textProp01 = chprop( textProp, color = "red" )
textProp02 = chprop( textProp, font.size = 12 )
textProp03 = chprop( textProp, font.weight = "bold" )
textProp04 = chprop( textProp, font.style = "italic" )
textProp05 = chprop( textProp, underlined = TRUE )
textProp06 = chprop( textProp, font.family = "Arial" )
textProp07 = chprop( textProp, vertical.align = "superscript" )
textProp08 = chprop( textProp, font.size = 12,
font.weight = "bold", shading.color = "red" )
Community examples
Looks like there are no examples yet.