跳转至

样式组件 API

样式组件API参考文档。

FontStyle

字体样式组件。

class FontStyle:
    name: str | None
    size: float | None
    bold: bool | None
    italic: bool | None
    color: Color | None

FillStyle

填充样式组件。

BorderStyle

边框样式组件。

AlignmentStyle

对齐样式组件。

示例

from symphra_excel.styles.components import FontStyle

font = FontStyle(name="Arial", size=12, bold=True)