Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <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);
 }