zplCore.comzplCore.com

ZplCommand

public record ZplCommand

A single ZPL command, e.g. ^FO50,100 → Prefix '^', Name "FO", Parameters "50,100".

Constructors

SignatureDescription
# ZplCommand(char Prefix, string Name, string Parameters)A single ZPL command, e.g. ^FO50,100 → Prefix '^', Name "FO", Parameters "50,100".

Properties

PropertyTypeDescription
Length { get; init; }intLength of the command in the source, prefix and parameters included.
Name { get; init; }string
Offset { get; init; }intCharacter offset of the command prefix in the parsed source (-1 when not parsed from text).
Parameters { get; init; }string
Prefix { get; init; }char

Methods

Method SignatureReturnsDescription
# Args(char delimiter = ',')string[]Parameters split at the current delimiter (default ',').
# Deconstruct(out char Prefix, out string Name, out string Parameters)void