Skip to content

TextDecoration 继承自: IntFlag

在文本附近绘制的线性装饰。

枚举值 ​

名称类型默认值说明
NONE—0Do not draw a decoration.
UNDERLINE—1Draw a line underneath each line of text.
OVERLINE—2Draw a line above each line of text.
LINE_THROUGH—4Draw a line through each line of text.

Usage Example ​

The enum is a flag, so multiple decorations can be combined together as follows:

python
style = ft.TextStyle(decoration=ft.TextDecoration.UNDERLINE | ft.TextDecoration.OVERLINE)

关注我,学习大模型、大数据、Python等热门技术。