diff --git a/Instructions/BarcodeInstruction.cs b/Instructions/BarcodeInstruction.cs index 70aa78e..8e31482 100644 --- a/Instructions/BarcodeInstruction.cs +++ b/Instructions/BarcodeInstruction.cs @@ -17,6 +17,9 @@ public class BarcodeInstruction : BaseInstruction [JsonConverter(typeof(JsonStringEnumConverter))] public Alignment alignment {get; set; } = Alignment.Left; + [JsonConverter(typeof(JsonStringEnumConverter))] + public BarLabelPrintPosition lablePos {get; set; } = BarLabelPrintPosition.Below; + // [JsonConverter(typeof(JsonStringEnumConverter))] // public BarWidth width { get; set; } = BarWidth.Default; @@ -34,6 +37,10 @@ public class BarcodeInstruction : BaseInstruction commands.Add(alignmentCommand(alignment)); + if (lablePos != BarLabelPrintPosition.Below){ + commands.Add(e.SetBarLabelPosition(lablePos)); + } + if (height > 0) { commands.Add(e.SetBarcodeHeightInDots(height));