TextFormat class
文本格式设置
Constructors
- TextFormat({int textSize = 0, int textWidthRatio = 0, int textHeightRatio = 0, int textSpace = 0, bool enUnderline = false, bool enStrikethrough = false, bool enItalics = false, bool enInvert = false, bool enAntiColor = false, bool enBold = false, String customFont = ''})
-
TextFormat.fromJson(Map<
String, dynamic> json) -
从 JSON 创建 TextFormat 实例
factory
Properties
- align ↔ int
-
对齐方式
getter/setter pairinherited
- customFont ↔ String
-
自定义字体
getter/setter pair
- enAntiColor ↔ bool
-
反色使能
getter/setter pair
- enBold ↔ bool
-
加粗使能
getter/setter pair
- enInvert ↔ bool
-
文本倒置使能
getter/setter pair
- enItalics ↔ bool
-
倾斜使能
getter/setter pair
- enStrikethrough ↔ bool
-
删除线使能
getter/setter pair
- enUnderline ↔ bool
-
下划线使能
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
预打印内容的高度
getter/setter pairinherited
- renderColor ↔ int
-
指定渲染的颜色
getter/setter pairinherited
- rotate ↔ int
-
旋转角度
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textHeightRatio ↔ int
-
纵向放大比例
getter/setter pair
- textSize ↔ int
-
文本尺寸大小
getter/setter pair
- textSpace ↔ int
-
左右边距
getter/setter pair
- textWidthRatio ↔ int
-
横向放大比例
getter/setter pair
- width ↔ int
-
预打印内容的宽度
getter/setter pairinherited
- xOffset ↔ int
-
在行打印中对应相对当前横向位置
在图打印中对应 x 轴坐标位置
getter/setter pairinherited
- yOffset ↔ int
-
在行打印中对应相对上一行的位置
在图打印中对应 y 轴坐标位置
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
转换为 JSON
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited