Skip to main content

Interface: AddTextStyleParams

reverse (optional)​

reverse?: number

Enables or disables the reverse style.

ValueDescription
PrinterConstants.TRUEEnables the reverse style.
PrinterConstants.FALSEDisables the reverse style.
PrinterConstants.PARAM_UNSPECIFIED Not specify.
PrinterConstants.PARAM_DEFAULTSpecifies the default value (reverse style disabled).

ul (optional)​

ul?: number

Enables or disables the underscore style.

ValueDescription
PrinterConstants.TRUEEnables the underscore style.
PrinterConstants.FALSEDisables the underscore style.
PrinterConstants.PARAM_UNSPECIFIED Not specify.
PrinterConstants.PARAM_DEFAULTSpecifies the default value (underscore style disabled).

em (optional)​

em?: number

Enables or disables the bold style.

ValueDescription
PrinterConstants.TRUEEnables the bold style..
PrinterConstants.FALSEDisables the bold style.
PrinterConstants.PARAM_UNSPECIFIED Not specify.
PrinterConstants.PARAM_DEFAULTSpecifies the default value (the bold style disabled).

color (optional)​

color?: number

Specifies the color.

ValueDescription
PrinterConstants.COLOR_NONENo printing
PrinterConstants.COLOR_1First color
PrinterConstants.COLOR_2Second color
PrinterConstants.COLOR_3Third color
PrinterConstants.COLOR_4Fourth color
PrinterConstants.PARAM_UNSPECIFIED Not specify.
PrinterConstants.PARAM_DEFAULTSpecifies the default value (first color).