Exemple #1
0
 private string ApplyOptions(string text, params AppendOption[] options)
 {
     if (string.IsNullOrWhiteSpace(text))
     {
         return(text);
     }
     else
     {
         return(AppendOption.Start(options) + text + AppendOption.End(options));
     }
 }
Exemple #2
0
 public FormattedTextBuilder Append(string text, params AppendOption[] options)
 {
     if (string.IsNullOrWhiteSpace(text))
     {
         this.Text += text;
     }
     else
     {
         this.Text += AppendOption.Start(options) + text + AppendOption.End(options);
     }
     return(this);
 }