Ejemplo n.º 1
0
 public static PlantUmlText WithFontColor(this PlantUmlText src, UmlColor color)
 {
     if (color.IsEmpty)
     {
         return(src);
     }
     return(src.WithWrapHtml("color", color.PlantUmlCode));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 public static PlantUmlText WithBackground(this PlantUmlText src, string color)
 {
     return(src.WithWrapHtml("back", color));
 }
Ejemplo n.º 4
0
 public static PlantUmlText WithFontSize(this PlantUmlText src, int size)
 {
     return(src.WithWrapHtml("size", size.ToInv()));
 }