Skip to content

CATextLayer

CATextLayer 继承自 CALayer,用于在图层中渲染文本。插件运行时的 string 可为字符串或富文本等运行时对象。

属性类型说明
stringany文本内容(可为字符串或富文本对象)。
fontany字体对象(运行时类型为 id)。
fontSizenumber字号。
foregroundColorany前景色(运行时类型为 id)。
alignmentModestring | null对齐方式。
truncationModestring | null截断模式。
wrappedboolean是否自动换行。

当前运行时未额外暴露 CATextLayer 的类成员。

头文件 API 清单

正在加载…

协议:,来源: