zplCore.comzplCore.com

ZplDocument

public sealed class ZplDocument

Typed object model of a ZPL stream.

Constructors

SignatureDescription
# ZplDocument()

Properties

PropertyTypeDescription
Commands { get; }IEnumerable<ZplCommandBase>All commands of all formats in order.
Formats { get; }List<ZplFormat>
LabelFormats { get; }IEnumerable<ZplFormat>Only the ^XA…^XZ label formats.

Methods

Method SignatureReturnsDescription
static # Parse(string zpl)ZplDocument
# ToString()string
# ToZpl(ZplOutputOptions? options = default)stringSerializes the document in the layout of options (pretty-printed, minified …; null = like ZplDocument.ToString). The result parses to the same commands and renders pixel-identically.