Xamarin.Forms Guides | Samples

Xamarin.Forms.FormattedString Class

Represents a text with attributes applied to some parts.

See Also: FormattedString


public class FormattedString : INotifyPropertyChanged



Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,,

The members of Xamarin.Forms.FormattedString are listed below.

See Also: Object

Public Constructors

Initializes a new instance of the FormattedString class.

Public Properties

SpansIList<Span>. Gets the collection of spans.

Public Methods

ToString() : String
Returns the text of the formatted string as an unformatted string.

Public Events

PropertyChangedEvent that is raised when a bound property is changed.

Public Operators

Conversion to System.String(Explicit)Cast the FormattedString to a string, stripping all the attributes.
Conversion to Xamarin.Forms.FormattedString(Implicit)Cast a string to a FormattedString that contains a single span with no attribute set.