fastpyxl.cell.text module

Richtext definition

class fastpyxl.cell.text.InlineFont(rFont=None, charset=None, family=None, b=None, i=None, strike=None, outline=None, shadow=None, condense=None, extend=None, color=None, sz=None, u=None, vertAlign=None, scheme=None)[source]

Bases: Serialisable

Font for inline text because, yes what you need are different objects with the same elements but different constraints.

b: bool | None
charset: int | None
color: Color | None
condense: bool | None
extend: bool | None
family: float | None
classmethod from_tree(node)[source]
i: bool | None
outline: bool | None
rFont: str | None
scheme: str | None
shadow: bool | None
strike: bool | None
sz: float | None
tagname = 'RPrElt'
u: str | None
vertAlign: str | None
xml_order = ('rFont', 'charset', 'family', 'b', 'i', 'strike', 'outline', 'shadow', 'condense', 'extend', 'color', 'sz', 'u', 'vertAlign', 'scheme')
class fastpyxl.cell.text.PhoneticProperties(fontId=None, type=None, alignment=None)[source]

Bases: Serialisable

alignment: str | None
fontId: int | None
tagname = 'phoneticPr'
type: str | None
class fastpyxl.cell.text.PhoneticText(sb=None, eb=None, t=None)[source]

Bases: Serialisable

eb: int | None
sb: int | None
t: str | None
tagname = 'rPh'
property text
class fastpyxl.cell.text.RichText(rPr=None, t=None)[source]

Bases: Serialisable

property font
rPr: InlineFont | None
t: str | None
tagname = 'RElt'
property text
xml_order = ('rPr', 't')
class fastpyxl.cell.text.Text(t=None, r=(), rPh=(), phoneticPr=None)[source]

Bases: Serialisable

property PhoneticProperties
property content

Text stripped of all formatting

property formatted
classmethod from_tree(node)[source]
property phonetic
phoneticPr: PhoneticProperties | None
property plain
r: list[RichText]
rPh: list[PhoneticText]
t: str | None
tagname = 'text'
xml_order = ('t', 'r', 'rPh', 'phoneticPr')