public string ToString(Type type, Vendors vendor) { string value = null; switch (this.value) { case Common.Text.FontStyle.Inherit: return(null); case Common.Text.FontStyle.Regular: value = "normal"; break; case Common.Text.FontStyle.Italic: value = "italic"; break; case Common.Text.FontStyle.Oblique: value = "oblique"; break; default: throw new NotImplementedException(); } switch (type) { case Type.css: case Type.scss: return(string.Format("font-style: {0};", value)); case Type.sass: return(string.Format("font-style: {0}", value)); default: throw new NotSupportedException(); } }
internal FontStyle(Common.Text.FontStyle value) { this.value = value; }