API参考QuartzCore

CATextLayer

文本图层。支持 string/font/fontSize、alignmentMode、foregroundColor 与 wrapped。

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

实例成员 (Instance members)

属性

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

类成员 (Class members)

当前接口未额外暴露 CATextLayer 的类成员。

相关

头文件API清单

正在加载...

协议:JSBCATextLayer,来源:-