zplCore.comzplCore.com

ZplCommandBase

public abstract class ZplCommandBase

Base class of all typed ZPL commands. Parameters are stored positionally (lossless) and exposed by derived classes as named, typed properties. A null property value means "parameter omitted" (printer default).

Properties

PropertyTypeDescription
Arguments { get; }IReadOnlyList<string>Raw positional arguments (as parsed, delimiter normalized to ',').
Code { get; }stringCommand mnemonic without prefix, e.g. "FO", "BC", "A".
ParameterText { get; set; }stringThe parameter text after the mnemonic.
Prefix { get; set; }char'^' or '~'.

Methods

Method SignatureReturnsDescription
static # From(ZplCommand raw)ZplCommandBaseCreates a typed command from a tokenized one (unknown mnemonics yield UnknownCommand).
# GetRaw(int i)string
# SetRaw(int i, string value)void
# ToString()stringSerializes with the standard control characters.
# ToString(char caret, char tilde, char delimiter)stringSerializes with the given control characters (see ^CC, ^CT, ^CD).