diff --git a/Source/Plugin.CrossFormattedText.Abstractions/FormattedStringBuilder.cs b/Source/Plugin.CrossFormattedText.Abstractions/FormattedStringBuilder.cs index 5d4d63d..bb63786 100644 --- a/Source/Plugin.CrossFormattedText.Abstractions/FormattedStringBuilder.cs +++ b/Source/Plugin.CrossFormattedText.Abstractions/FormattedStringBuilder.cs @@ -152,6 +152,18 @@ public FormattedStringBuilder Append(object value,Span span) { return Append(value.ToString(),span); } + /// + /// call Append(string,Span) method using value.Text value + /// + /// append text and span value + /// this instance + 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); }