Span Span Class

Definition

Represents a part of a FormattedString.

[Xamarin.Forms.ContentProperty("Text")]
public sealed class Span : System.ComponentModel.INotifyPropertyChanged, Xamarin.Forms.Internals.IFontElement
type Span = class
    interface INotifyPropertyChanged
    interface IFontElement
Inheritance
SpanSpan
Attributes
Implements

Constructors

Span() Span()

Initialize a new instance of the Span class.

Properties

BackgroundColor BackgroundColor

Gets or sets the Color of the span background.

Font Font

Gets or sets the Font for the text in the span.

FontAttributes FontAttributes

Gets a value that indicates whether the font for the span is bold, italic, or neither.

FontFamily FontFamily

Gets the font family to which the font for the text in the span belongs.

FontSize FontSize

Gets the size of the font for the text in the span.

ForegroundColor ForegroundColor

Gets or sets the Color for the text in the span.

Text Text

Gets or sets the text of the span.

Events

PropertyChanged PropertyChanged

Event that is raised when a property is changed.

Explicit Interface Implementations

IFontElement.FontSizeDefaultValueCreator() IFontElement.FontSizeDefaultValueCreator()

For internal use by the Xamarin.Forms platform.

IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes) IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes)

For internal use by the Xamarin.Forms platform.

IFontElement.OnFontChanged(Font, Font) IFontElement.OnFontChanged(Font, Font)

For internal use by the Xamarin.Forms platform.

IFontElement.OnFontFamilyChanged(String, String) IFontElement.OnFontFamilyChanged(String, String)

For internal use by the Xamarin.Forms platform.

IFontElement.OnFontSizeChanged(Double, Double) IFontElement.OnFontSizeChanged(Double, Double)

For internal use by the Xamarin.Forms platform.

Extension Methods

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to