Methods
Method new()
Returns a ContentBlock
object.
Details
Returns a ContentBlock
object with no content and the default style.
Method set_content()
Sets content of this ContentBlock
.
Usage
ContentBlock$set_content(content)
Arguments
content
(character(0)
or character(1)
) a string literal or a file path assigned to this ContentBlock
Method get_content()
Returns the absolute path to content of this ContentBlock
Usage
ContentBlock$get_content()
Returns
character
content of this ContentBlock
Method from_list()
Create the ContentBlock
from a list.
Usage
ContentBlock$from_list(x)
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 ContentBlock
to a list.
Returns
named list
with a text and style.
Method clone()
The objects of this class are cloneable with this method.
Usage
ContentBlock$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.