added barcode lable pos

This commit is contained in:
Djeeberjr 2022-02-18 19:03:09 +01:00
parent 2d7338aa76
commit e127efa0aa

View File

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