internal PDRenderSettings(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            PDRenderAddin.GetMonomerColorTable(this);

            DeserializeProperty <int>(info, context, PropertyNames.MaxAcidAmount, out _maxAcidAmount);
            DeserializeProperty <int>(info, context, PropertyNames.FontSize, out _fontSize);
            DeserializeProperty <string>(info, context, PropertyNames.FontFamily, out _fontFamily);

            DeserializeProperty <string>(info, context, PropertyNames.DefaultFontColor, out _defaultFontColor);
            DeserializeProperty <string>(info, context, PropertyNames.DefaultBackgroundColor, out _defaultBackgroundColor);
            DeserializeProperty <string>(info, context, PropertyNames.BranchMonomerFontColor, out _branchMonomerFontColor);
            DeserializeProperty <string>(info, context, PropertyNames.BranchMonomerBackgroundColor, out _branchMonomerBackgroundColor);
        }
        public PDRenderSettings()
        {
            PDRenderAddin.GetMonomerColorTable(this);

            CreateProperty(PropertyNames.MaxAcidAmount, out _maxAcidAmount, PDRenderAddin.DefaultMaxAcidAmount);
            CreateProperty(PropertyNames.FontSize, out _fontSize, PDRenderAddin.DefaultFontSize);
            CreateProperty(PropertyNames.FontFamily, out _fontFamily, PDRenderAddin.DefaultFontFamily);

            CreateProperty(PropertyNames.DefaultFontColor, out _defaultFontColor, "#000000");
            CreateProperty(PropertyNames.DefaultBackgroundColor, out _defaultBackgroundColor, "#FFFFFF");
            CreateProperty(PropertyNames.BranchMonomerFontColor, out _branchMonomerFontColor, "#000000");
            CreateProperty(PropertyNames.BranchMonomerBackgroundColor, out _branchMonomerBackgroundColor, "#FFFFFF");
        }