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
| Property | Type | Description |
Arguments { get; } | IReadOnlyList<string> | Raw positional arguments (as parsed, delimiter normalized to ','). |
Code { get; } | string | Command mnemonic without prefix, e.g. "FO", "BC", "A". |
ParameterText { get; set; } | string | The parameter text after the mnemonic. |
Prefix { get; set; } | char | '^' or '~'. |
Methods
| Method Signature | Returns | Description |
static # From(ZplCommand raw) | ZplCommandBase | Creates a typed command from a tokenized one (unknown mnemonics yield UnknownCommand). |
# GetRaw(int i) | string | |
# SetRaw(int i, string value) | void | |
# ToString() | string | Serializes with the standard control characters. |
# ToString(char caret, char tilde, char delimiter) | string | Serializes with the given control characters (see ^CC, ^CT, ^CD). |