FontFamily.Source Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the font family name that is used to construct the FontFamily object.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property Source As String
public string Source { get; }

Property Value

Type: System.String
The font family name of the FontFamily object.

Remarks

The default value for a referenced FontFamily is initialized with the value Portable User Interface. This value is an alias. For information about the Portable User Interface concept, and information about which font families are considered default system fonts for Silverlight for either Western or East Asian character sets, see Text and Fonts.

The Source value for a FontFamily value on an in-use text object will return the Portable User Interface value for cases where a FontFamily was not explicitly provided.

Otherwise, Source returns the names of the font family or families corresponding to how the FontFamily was constructed, or how the FontFamily was set as a XAML attribute.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.