renamed printInstruction
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
using ESCPOS_NET.Emitters;
|
||||
using ESCPOS_NET.Utilities;
|
||||
|
||||
public class PrintInstruction : BaseInstruction
|
||||
public class TextInstruction : BaseInstruction
|
||||
{
|
||||
[DataMember(IsRequired = true)]
|
||||
public string? text { get; set; }
|
||||
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public Alignment alignment {get; set; } = Alignment.Left;
|
||||
|
||||
public bool newLine { get; set; } = true;
|
||||
public override List<byte[]> GetInstructions()
|
||||
{
|
||||
var e = new EPSON();
|
||||
var commands = new List<byte[]>();
|
||||
|
||||
commands.Add(alignmentCommand(alignment));
|
||||
|
||||
if (newLine)
|
||||
{
|
||||
Reference in New Issue
Block a user