private StyleList GetStyleList(string styleName, string val, bool multi) { StyleList sl = null; if (multi) { sl = new StyleList(' '); } else { sl = new StyleList(); } string[] arr = val.Split(new char[] { ';', ',', ' ' }); foreach (string element in arr) { if (element.Trim().Length > 0) { sl.Add(element); } } return(sl); }
/// <summary> /// Adds a list to the collection. /// </summary> /// <param name="property">The name of the property.</param> /// <param name="o">The list value.</param> public void Add(string property, StyleList o) { baseTable.Add(property, o); }