Пример #1
0
        /// <summary>
        /// 清除所有样式
        /// </summary>
        /// <returns></returns>
        public StyleManager Clear()
        {
            _style.Clear();
            _element.SetAttribute("style", "", out _attribute);

            return(this);
        }
Пример #2
0
 public void Remove(string key)
 {
     if (0 == String.Compare(key, StyleAttribute, true, Helpers.InvariantCulture))
     {
         CssStyle.Clear();
         return;
     }
     bag.Remove(key);
 }
Пример #3
0
 public void Clear()
 {
     CssStyle.Clear();
     bag.Clear();
 }