public ZPLFieldBlock(string text, int positionX, int positionY, int width, ZPLFont font, int maxLineCount = 1, int lineSpace = 0, string textJustification = "L", int hangingIndent = 0, NewLineConversionMethod newLineConversion = NewLineConversionMethod.ToZPLNewLine, bool useHexadecimalIndicator = true, bool reversePrint = false) : base(text, positionX, positionY, font, newLineConversion, useHexadecimalIndicator, reversePrint) { TextJustification = textJustification; Width = width; MaxLineCount = maxLineCount; LineSpace = lineSpace; HangingIndent = hangingIndent; }
/// <summary> /// Constuct a ^FD (Field Data) element, together with the ^FO, ^A and ^FH.Control character will be handled (Conver to Hex or replace with ' ') /// </summary> /// <param name="text">Original text content</param> /// <param name="positionX"></param> /// <param name="positionY"></param> /// <param name="fontWidth"></param> /// <param name="fontHeight"></param> /// <param name="fontName"></param> /// <param name="orientation"></param> /// <param name="useHexadecimalIndicator"></param> public ZPLTextField(string text, int positionX, int positionY, ZPLFont font, NewLineConversionMethod newLineConversion = NewLineConversionMethod.ToSpace, bool useHexadecimalIndicator = true, bool reversePrint = false) : base(positionX, positionY) { Text = text; Origin = new ZPLOrigin(positionX, positionY); Font = font; UseHexadecimalIndicator = useHexadecimalIndicator; NewLineConversion = newLineConversion; ReversePrint = reversePrint; }
public ZPLTextBlock(string text, int positionX, int positionY, int width, int height, ZPLFont font, NewLineConversionMethod newLineConversion = NewLineConversionMethod.ToSpace, bool useHexadecimalIndicator = true) : base(text, positionX, positionY, font, newLineConversion, useHexadecimalIndicator) { Width = width; Height = height; }
public ZPLSingleLineFieldBlock(string text, int positionX, int positionY, int width, ZPLFont font, string textJustification = "L", NewLineConversionMethod newLineConversion = NewLineConversionMethod.ToSpace, bool useHexadecimalIndicator = true, bool reversePrint = false) : base(text, positionX, positionY, width, font, 9999, 9999, textJustification, 0, newLineConversion, useHexadecimalIndicator, reversePrint) { }