public static StringBuilder ToStyleString(this IHasTableItemStyle hasStyle, StringBuilder sb) { ((IHasStyle)hasStyle).ToStyleString(sb); if (!hasStyle.Wrap) { sb.Append("white-space:nowrap;"); } return(sb); }
public static StyleBuilder ToStyle(this IHasTableItemStyle hasStyle) => ((IHasStyle)hasStyle).ToStyle().AddStyle("white-space", "nowrap", !hasStyle.Wrap);
public static string ToStyleString(this IHasTableItemStyle hasStyle) { return(ToStyleString(hasStyle, new StringBuilder()).ToString()); }