/// <summary> /// Umwandlung in eine CSS-Klasse /// </summary> /// <returns>Die zur Farbe gehörende CSS-KLasse</returns> public virtual string ToClass() { if (SystemSize != TypeSizeText.Default) { return(SystemSize.ToClass()); } return(null); }
/// <summary> /// Umwandlung in einen CSS-Style /// </summary> /// <returns>Das zur Farbe gehörende CSS-Style</returns> public virtual string ToStyle() { if (SystemSize != TypeSizeText.Default) { return(SystemSize.ToStyle()); } else if (IsUserSize) { return(string.Format(CultureInfo.InvariantCulture, "font-size:{0:f}rem;", UserSize)); } return(null); }