/// <inheritdoc/>
        public override void Assign(BarcodeBase source)
        {
            base.Assign(source);
            BarcodeDatamatrix src = source as BarcodeDatamatrix;

            SymbolSize = src.SymbolSize;
            Encoding   = src.Encoding;
            CodePage   = src.CodePage;
            PixelSize  = src.PixelSize;
        }
        internal override void Serialize(FastReport.Utils.FRWriter writer, string prefix, BarcodeBase diff)
        {
            base.Serialize(writer, prefix, diff);
            BarcodeDatamatrix c = diff as BarcodeDatamatrix;

            if (c == null || SymbolSize != c.SymbolSize)
            {
                writer.WriteValue(prefix + "SymbolSize", SymbolSize);
            }
            if (c == null || Encoding != c.Encoding)
            {
                writer.WriteValue(prefix + "Encoding", Encoding);
            }
            if (c == null || CodePage != c.CodePage)
            {
                writer.WriteInt(prefix + "CodePage", CodePage);
            }
            if (c == null || PixelSize != c.PixelSize)
            {
                writer.WriteInt(prefix + "PixelSize", PixelSize);
            }
        }