${iServerJava6R_ServerTextStyle_Title}
        internal static string ToJson(ServerTextStyle serverTextStyle)
        {
            List<string> jsonlist = new List<string>();
            string json = "{";

            jsonlist.Add(string.Format("\"align\":\"{0}\"", serverTextStyle.Align.ToString()));
            //backcolor格式不对,提交时将此注释删除
            jsonlist.Add(string.Format("\"backColor\":{0}", ServerColor.ToJson(serverTextStyle.BackColor.ToServerColor())));
            jsonlist.Add(string.Format("\"backOpaque\":\"{0}\"", serverTextStyle.BackOpaque.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"bold\":\"{0}\"", serverTextStyle.Bold.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            //jsonlist.Add(string.Format("\"fixedTextSize\":\"{0}\"", serverTextStyle.FixedTextSize.ToString()));
            jsonlist.Add(string.Format("\"fontHeight\":\"{0}\"", serverTextStyle.FontHeight.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            jsonlist.Add(string.Format("\"fontName\":\"{0}\"", serverTextStyle.FontName));
            //jsonlist.Add(string.Format("\"fontScale\":\"{0}\"", serverTextStyle.FontScale.ToString()));
            jsonlist.Add(string.Format("\"fontWeight\":\"{0}\"", serverTextStyle.FontWeight.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            jsonlist.Add(string.Format("\"fontWidth\":\"{0}\"", serverTextStyle.FontWidth.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            //foreColor格式不对,提交时将此注释删除
            jsonlist.Add(string.Format("\"foreColor\":{0}", ServerColor.ToJson(serverTextStyle.ForeColor.ToServerColor())));
            jsonlist.Add(string.Format("\"italic\":\"{0}\"", serverTextStyle.Italic.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"italicAngle\":\"{0}\"", serverTextStyle.ItalicAngle.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            jsonlist.Add(string.Format("\"opaqueRate\":\"{0}\"", serverTextStyle.OpaqueRate.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            jsonlist.Add(string.Format("\"outline\":\"{0}\"", serverTextStyle.Outline.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"rotation\":\"{0}\"", serverTextStyle.Rotation.ToString(System.Globalization.CultureInfo.InvariantCulture)));
            jsonlist.Add(string.Format("\"shadow\":\"{0}\"", serverTextStyle.Shadow.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"sizeFixed\":\"{0}\"", serverTextStyle.SizeFixed.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"strikeout\":\"{0}\"", serverTextStyle.Strikeout.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            jsonlist.Add(string.Format("\"underline\":\"{0}\"", serverTextStyle.Underline.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));

            json += string.Join(",", jsonlist.ToArray());
            json += "}";
            return json;
        }
        internal static ServerTextStyle FromJson(JsonObject json)
        {
            if (json == null) return null;
            ServerTextStyle textStyle = new ServerTextStyle();

            textStyle.Align = (TextAlignment)Enum.Parse(typeof(TextAlignment), json["align"], true);
            textStyle.BackColor = ServerColor.FromJson((JsonObject)json["backColor"]).ToColor();
            textStyle.BackOpaque = (bool)json["backOpaque"];
            textStyle.Bold = (bool)json["bold"];
            textStyle.FontHeight = (double)json["fontHeight"];
            textStyle.FontName = json["fontName"];
            textStyle.FontWeight = (int)json["fontWeight"];
            textStyle.FontWidth = (double)json["fontWidth"];
            textStyle.ForeColor = ServerColor.FromJson((JsonObject)json["foreColor"]).ToColor();
            textStyle.Italic = (bool)json["italic"];
            textStyle.ItalicAngle = (double)json["italicAngle"];
            textStyle.OpaqueRate = (int)json["opaqueRate"];
            textStyle.Outline = (bool)json["outline"];
            textStyle.Rotation = (double)json["rotation"];
            textStyle.Shadow = (bool)json["shadow"];
            textStyle.SizeFixed = (bool)json["sizeFixed"];
            textStyle.Strikeout = (bool)json["strikeout"];
            textStyle.Underline = (bool)json["underline"];
            return textStyle;
        }