paper-xlsxAPI referencecell.rich_text
CellRichText
paper-xlsx 0.2.1 API reference
Represents a rich text string.
Initialize with a list made of pure strings or TextBlock elements
Can index object to access or modify individual rich text elements
it also supports the + and += operators between rich text strings
There are no user methods for this class
operations which modify the string will generally call an optimization pass afterwards, that merges text blocks with identical formats, consecutive pure text strings, and remove empty strings and empty text blocks
CellRichText(*args)Functions
__setitem__
func__setitem__(indx, val)paramindxparamvalappend
funcappend(arg)paramargas_list
funcas_list()Returns a list of the strings contained. The main reason for this is to make editing easier.
extend
funcextend(arg)paramargfrom_tree
funcfrom_tree(node)paramnodeto_tree
functo_tree()Return the full XML representation