Example #1
0
        /// <summary>
        /// Returns a CSS code representation of the property.
        /// </summary>
        /// <returns>A string that contains the code.</returns>
        public String ToCss()
        {
            var value = _name + ":" + _value.ToCss();

            if (_important)
            {
                value += " !important";
            }

            return(value);
        }
Example #2
0
 /// <summary>
 /// Returns a CSS code representation of the property.
 /// </summary>
 /// <returns>A string that contains the code.</returns>
 public String ToCss()
 {
     return(String.Concat(_name, ":", _value.ToCss(), _important ? "!important" : String.Empty));
 }