79
Chapter 4 ePOS-Print API
4
color:(Optionalparameter,Objecttype:String)
Specifiesthecolor.
Return value
Exception
Example
Setting Description
COLOR_NONE Characters are not printed.
COLOR_1 (default) First color
COLOR_2 Second color
COLOR_3 Third color
COLOR_4 Fourth color
undefined
(When not specified)
Retains the current color setting
Return value Object type
ePOS-Print Builder Object ePOS Builder
Exception Object type
Parameter " ... " is invalid Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addTextStyle(undefined, true);
}
//-->
</script>
To set the underline style: