SuperMap.Web.iServerJava6R.LabelImageCell.ToJson C# (CSharp) Méthode

ToJson() static private méthode

static private ToJson ( LabelImageCell imageCell ) : string
imageCell LabelImageCell
Résultat string
        internal static string ToJson(LabelImageCell imageCell)
        {
            string json = "{";
            List<string> list = new List<string>();
            list.Add(string.Format("\"pathField\":\"{0}\"", imageCell.PathField));
            list.Add(string.Format("\"sizeFixed\":{0}", imageCell.SizeFixed.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
            list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"height\":{0}", imageCell.Height));
            list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"width\":{0}", imageCell.Width));
            list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"rotation\":{0}", imageCell.Rotation));
            list.Add(string.Format("\"type\":\"{0}\"", imageCell.Type));
            json += string.Join(",", list.ToArray());
            json += "}";
            return json;
        }