Exemple #1
0
        public string ToString(Type type, Vendors vendor)
        {
            string value = null;

            switch (this.value)
            {
            case Common.Text.FontWeight.Inherit:
                return(null);

            case Common.Text.FontWeight.Normal:
                value = "normal";
                break;

            case Common.Text.FontWeight.Bold:
                value = "bold";
                break;

            default:
                throw new NotImplementedException();
            }

            switch (type)
            {
            case Type.css:
            case Type.scss:
                return(string.Format("font-weight: {0};", value));

            case Type.sass:
                return(string.Format("font-weight: {0}", value));

            default:
                throw new NotSupportedException();
            }
        }
Exemple #2
0
 internal FontWeight(Common.Text.FontWeight value)
 {
     this.value = value;
 }