${iServer2_Theme_ServerColor_Title}
${iServer2_Theme_ServerColor_Description}
/// <summary>${iServer2_Theme_ServerTextStyle_constructor_None_D}</summary> public ServerTextStyle() { Align = ServerTextAlignment.TopCenter; BgColor = new ServerColor() { Red = 255, Green = 0, Blue = 0 }; Color = new ServerColor() { Red = 255, Green = 0, Blue = 0 }; FixedSize = true; FixedTextSize = 0; FontHeight = 10; FontWidth = 7; FontWeight = 400; FontName = "宋体"; Rotation = 0; }
/// <summary>${iServer2_Theme_ServerStyle_constructor_None_D}</summary> public ServerStyle() { FillBackColor = new ServerColor(255, 255, 255); FillForeColor = new ServerColor(255, 0, 0); FillOpaqueRate = 100; FillSymbolID = 0; LineColor = new ServerColor(0, 0, 0); LineSymbolID = 0x000000; LineWidth = 0.01; MarkerAngle = 0; MarkerSymbolID = -1; MarkerSize = 1; }
/// <summary>${iServer2_Theme_ThemeGraph_constructor_None_D}</summary> public ThemeGraph() { OffsetX = "0.0"; OffsetY = "0.0"; LeaderLineStyle = new ServerStyle(); ; AxesColor = new ServerColor(0, 0, 0); AxesTextStyle = new ServerTextStyle(); GraphTextStyle = new ServerTextStyle(); GraphTextFormat = GraphTextFormat.Value; MinGraphSize = 40.0; MaxGraphSize = 60.0; GraduatedMode = GraduatedMode.Constant; GraphType = GraphType.Pie; }
internal static string ToJson(ServerColor serverColor) { if (serverColor == null) { return null; } string json = "{"; List<string> list = new List<string>(); list.Add(string.Format("\"red\":{0}", serverColor.Red)); list.Add(string.Format("\"green\":{0}", serverColor.Green)); list.Add(string.Format("\"blue\":{0}", serverColor.Blue)); json += string.Join(",", list.ToArray()); json += "}"; return json; }
/// <summary>${iServer2_ServerColor_method_FromJson_D}</summary> /// <returns>${iServer2_ServerColor_method_FromJson_return}</returns> /// <param name="jsonObject">${iServer2_ServerColor_method_FromJson_param_jsonObject}</param> public static ServerColor FromJson(JsonObject jsonObject) { if (jsonObject == null) { return null; } ServerColor result = new ServerColor() { Red = Convert.ToInt32((string)jsonObject["red"]), Green = Convert.ToInt32((string)jsonObject["green"]), Blue = Convert.ToInt32((string)jsonObject["blue"]) }; return result; }