/// <summary> /// /// </summary> /// <returns>Return: The CSS style of getted class in CSS originall format.</returns> public string GetGridStyle(GridModel.GridClasses GridClass) { if (styles.ContainsKey(GridClass.ToString())) { return(" GridContainer" + GridName + " ." + GridClass.ToString() + "{" + styles[GridClass.ToString()] + "}"); } else { return(""); } }
/// <summary> /// /// </summary> /// <param name="GridClass">Chose yor class from GridModel.GridClass Enum</param> /// <param name="CssStyle">Enter full css attribute and values in a string format. Something like this : /// "color:red; font-size:10px;"</param> public void SetGridStyle(GridModel.GridClasses GridClass, string CssStyle) { if (styles.ContainsKey(GridClass.ToString())) { styles[GridClass.ToString()] = CssStyle; } else { styles.Add(GridClass.ToString(), CssStyle); } }