| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
Text.Builder |
angle(Integer angle)
文字旋转角度
示例值:90
|
Text.Builder |
angle(TextTextAngleEnum angle)
文字旋转角度
示例值:90
|
Text |
build() |
Text.Builder |
fontSize(Integer fontSize)
文字大小
示例值:14
|
Text.Builder |
fontWeight(String fontWeight)
文字字重
示例值:regular
|
Text.Builder |
fontWeight(TextFontWeightEnum fontWeight)
文字字重
示例值:regular
|
Text.Builder |
horizontalAlign(String horizontalAlign)
水平对齐
示例值:
|
Text.Builder |
horizontalAlign(TextHorizontalAlignEnum horizontalAlign)
水平对齐
示例值:
|
Text.Builder |
italic(Boolean italic)
是否斜体
示例值:true
|
Text.Builder |
lineThrough(Boolean lineThrough)
是否存在删除线
示例值:true
|
Text.Builder |
richText(RichText richText)
富文本
示例值:
|
Text.Builder |
text(String text)
文字内容
示例值:文字内容
|
Text.Builder |
textBackgroundColor(String textBackgroundColor)
文字背景色,16 进制 rgb 值
示例值:#6db5a3
|
Text.Builder |
textBackgroundColorType(Integer textBackgroundColorType)
文字背景颜色类型,0=系统颜色,1=自定义颜色
示例值:
|
Text.Builder |
textBackgroundColorType(TextColorTypeEnum textBackgroundColorType)
文字背景颜色类型,0=系统颜色,1=自定义颜色
示例值:
|
Text.Builder |
textColor(String textColor)
文字颜色,16 进制 rgb 值
示例值:#6db5a3
|
Text.Builder |
textColorType(Integer textColorType)
文字颜色类型,0=系统颜色,1=自定义颜色
示例值:
|
Text.Builder |
textColorType(TextColorTypeEnum textColorType)
文字颜色类型,0=系统颜色,1=自定义颜色
示例值:
|
Text.Builder |
themeTextBackgroundColorCode(Integer themeTextBackgroundColorCode)
文字背景颜色主题配色编码值
示例值:-1
|
Text.Builder |
themeTextColorCode(Integer themeTextColorCode)
文字颜色主题配色编码值
示例值:0
|
Text.Builder |
underline(Boolean underline)
是否存在下划线
示例值:true
|
Text.Builder |
verticalAlign(String verticalAlign)
垂直对齐
示例值:
|
Text.Builder |
verticalAlign(TextVerticalAlignEnum verticalAlign)
垂直对齐
示例值:
|
public Text.Builder text(String text)
示例值:文字内容
text - public Text.Builder fontWeight(String fontWeight)
示例值:regular
fontWeight - public Text.Builder fontWeight(TextFontWeightEnum fontWeight)
示例值:regular
fontWeight - TextFontWeightEnumpublic Text.Builder fontSize(Integer fontSize)
示例值:14
fontSize - public Text.Builder horizontalAlign(String horizontalAlign)
示例值:
horizontalAlign - public Text.Builder horizontalAlign(TextHorizontalAlignEnum horizontalAlign)
示例值:
horizontalAlign - TextHorizontalAlignEnumpublic Text.Builder verticalAlign(String verticalAlign)
示例值:
verticalAlign - public Text.Builder verticalAlign(TextVerticalAlignEnum verticalAlign)
示例值:
verticalAlign - TextVerticalAlignEnumpublic Text.Builder textColor(String textColor)
示例值:#6db5a3
textColor - public Text.Builder textBackgroundColor(String textBackgroundColor)
示例值:#6db5a3
textBackgroundColor - public Text.Builder lineThrough(Boolean lineThrough)
示例值:true
lineThrough - public Text.Builder underline(Boolean underline)
示例值:true
underline - public Text.Builder italic(Boolean italic)
示例值:true
italic - public Text.Builder angle(Integer angle)
示例值:90
angle - public Text.Builder angle(TextTextAngleEnum angle)
示例值:90
angle - TextTextAngleEnumpublic Text.Builder themeTextColorCode(Integer themeTextColorCode)
示例值:0
themeTextColorCode - public Text.Builder themeTextBackgroundColorCode(Integer themeTextBackgroundColorCode)
示例值:-1
themeTextBackgroundColorCode - public Text.Builder richText(RichText richText)
示例值:
richText - public Text.Builder textColorType(Integer textColorType)
示例值:
textColorType - public Text.Builder textColorType(TextColorTypeEnum textColorType)
示例值:
textColorType - TextColorTypeEnumpublic Text.Builder textBackgroundColorType(Integer textBackgroundColorType)
示例值:
textBackgroundColorType - public Text.Builder textBackgroundColorType(TextColorTypeEnum textBackgroundColorType)
示例值:
textBackgroundColorType - TextColorTypeEnumpublic Text build()
Copyright © 2025. All rights reserved.