public static PlantUmlText WithFontColor(this PlantUmlText src, UmlColor color) { if (color.IsEmpty) { return(src); } return(src.WithWrapHtml("color", color.PlantUmlCode)); }
public static PlantUmlText WithUnderline(this PlantUmlText src, string color = null) { if (src is null || src.IsEmpty) { return(src); } if (string.IsNullOrEmpty(color)) { return(src.WithWrap("__")); } return(src.WithWrapHtml("u", color)); }
public static PlantUmlText WithBackground(this PlantUmlText src, string color) { return(src.WithWrapHtml("back", color)); }
public static PlantUmlText WithFontSize(this PlantUmlText src, int size) { return(src.WithWrapHtml("size", size.ToInv())); }