Xamarin.Forms Guides | Samples

Xamarin.Forms.Span Class

Represents a part of a FormattedString.

See Also: Span

Syntax

[Xamarin.Forms.ContentProperty("Text")]
public sealed class Span : INotifyPropertyChanged

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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.