private string ApplyOptions(string text, params AppendOption[] options) { if (string.IsNullOrWhiteSpace(text)) { return(text); } else { return(AppendOption.Start(options) + text + AppendOption.End(options)); } }
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); }