Share via


Typography.NumeralAlignment Attached Property

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

Gets or sets a FontNumeralAlignment enumerated value that indicates the alignment of widths when using numerals.

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

Syntax

'Declaration
See GetNumeralAlignment, SetNumeralAlignment
See GetNumeralAlignment, SetNumeralAlignment

Property Value

Type: System.Windows.FontNumeralAlignment
A FontNumeralAlignment enumerated value. The default value is Normal.

Remarks

This property gets or sets a value on the object that owns a Typography property, which is the only way to access a Typography class instance. In addition, this property supports an attached property usage so that it can be set on text-containing objects in XAML.

OpenType fonts support a proportional and tabular figure feature to control the alignment of widths when using numerals. Proportional figures treat each numeral as having a different width—"1" is narrower than "5". Tabular figures are treated as equal-width numerals so that they align vertically, which increases the readability of financial type information.

Version Information

Silverlight

Supported in: 5

Platforms

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