SuperMap.WinRT.REST.Bridge.ToDictionary C# (CSharp) Method

ToDictionary() static private method

${REST_Bridge_method_ToDictionary_D}
static private ToDictionary ( this style ) : string>.Dictionary
style this ${REST_Bridge_method_ToDictionary_param_style}
return string>.Dictionary
        internal static Dictionary<string, string> ToDictionary(this ServerStyle style)
        {
            Dictionary<string, string> dict = new Dictionary<string, string>();

            dict.Add("fillBackOpaque", style.FillBackOpaque.ToString().ToLower());
            dict.Add("lineWidth", style.LineWidth.ToString());
            dict.Add("fillBackColor", ServerColor.ToJson(style.FillBackColor.ToServerColor()));
            dict.Add("fillForeColor", ServerColor.ToJson(style.FillForeColor.ToServerColor()));
            dict.Add("markerAngle", style.MarkerAngle.ToString());
            dict.Add("markerSize", style.MarkerSize.ToString());
            dict.Add("fillGradientOffsetRatioX", style.FillGradientOffsetRatioX.ToString());
            dict.Add("fillGradientOffsetRatioY", style.FillGradientOffsetRatioY.ToString());
            dict.Add("lineColor", ServerColor.ToJson(style.LineColor.ToServerColor()));
            dict.Add("fillOpaqueRate", style.FillOpaqueRate.ToString());
            dict.Add("fillGradientMode", "\"" + style.FillGradientMode.ToString() + "\"");
            dict.Add("fillSymbolID", style.FillSymbolID.ToString());
            dict.Add("fillGradientAngle", style.FillGradientAngle.ToString());
            dict.Add("markerSymbolID", style.MarkerSymbolID.ToString());
            dict.Add("lineSymbolID", style.LineSymbolID.ToString());
            return dict;
        }
    }