Methods
Inherited methods
Method new()
Returns a TextBlock
object.
Arguments
content
(character(1)
or character(0)
) a string assigned to this TextBlock
style
(character(1)
) one of: "default"
, "header2"
, "header3"
"verbatim"
Details
Returns a TextBlock
object with no content and the default style.
Method set_style()
Sets the style of this TextBlock
.
Usage
TextBlock$set_style(style)
Arguments
style
(character(1)
) one of: "default"
, "header2"
, "header3"
"verbatim"
Details
The style has bearing on the rendering of this block.
Method get_style()
Returns the style of this TextBlock
.
Returns
character(1)
the style of this TextBlock
Method get_available_styles()
Returns an array of styles available to this TextBlock
.
Usage
TextBlock$get_available_styles()
Returns
a character
array of styles
Method from_list()
Create the TextBlock
from a list.
Arguments
x
named list
with two fields c("text", "style")
.
Use the get_available_styles
method to get all possible styles.
Method to_list()
Convert the TextBlock
to a list.
Returns
named list
with a text and style.
Method clone()
The objects of this class are cloneable with this method.
Usage
TextBlock$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.