openpyxl.cell.rich_text module
RichText definition
- class openpyxl.cell.rich_text.CellRichText(*args)[source]
Bases:
list
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 classoperations 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