Xamarin.Forms Guides | Samples

Xamarin.Forms.Span Class

Represents a part of a FormattedString.

See Also: Span


public sealed class Span : INotifyPropertyChanged


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

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

See Also: Object

Public Constructors

Initialize a new instance of the Span class.

Public Properties

BackgroundColorColor. Gets or sets the Color of the span background.
FontFont. Gets or sets the Font for the text in the span.
FontAttributesFontAttributes. Gets a value that indicates whether the font for the span is bold, italic, or neither.
FontFamilyString. Gets the font family to which the font for the text in the span belongs.
FontSizeDouble. Gets the size of the font for the text in the span.
ForegroundColorColor. Gets or sets the Color for the text in the span.
TextString. Gets or sets the text of the span.

Public Events

PropertyChangedEvent that is raised when a property is changed.