Skip to content

Commit

Permalink
add Append method
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli committed May 28, 2017
1 parent 839ff1b commit f7b201d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ public FormattedStringBuilder Append(object value,Span span) {
return Append(value.ToString(),span);
}

/// <summary>
/// call Append(string,Span) method using value.Text value
/// </summary>
/// <param name="value">append text and span value</param>
/// <returns>this instance</returns>
public FormattedStringBuilder Append(Span value) {
if(value == null) {
throw new ArgumentNullException(nameof(value));
}
return Append(value.Text,value);
}

public FormattedStringBuilder Append(string value) {
return Append(value,null);
}
Expand Down

0 comments on commit f7b201d

Please sign in to comment.