Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Typography.NumeralStyle Property

Gets or sets a FontNumeralStyle enumerated value that determines the set of glyphs that are used to render numeric alternate font forms.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public:
property FontNumeralStyle NumeralStyle {
	FontNumeralStyle get ();
	void set (FontNumeralStyle value);
}
/** @property */
public FontNumeralStyle get_NumeralStyle ()

/** @property */
public void set_NumeralStyle (FontNumeralStyle value)

public function get NumeralStyle () : FontNumeralStyle

public function set NumeralStyle (value : FontNumeralStyle)

You cannot use this property in XAML.

Property Value

A FontNumeralStyle enumerated value. The default value is Normal.

OpenType fonts support an old style numeral format. This format is useful for displaying numerals in styles that are no longer standard. The following text displays an 18th century date in standard and old style numeral formats for the Palatino Linotype font.

Example of standard and old style numerals


Text using OpenType old style numerals

The following text displays standard numerals for the Palatino Linotype font, followed by old style numerals.

Example of standard and old style numeral sets


Text using OpenType old style numeral sets

The following code example shows how to define old style numerals for the Palatino Linotype font, using the NumeralStyle property.

<Paragraph FontFamily="Palatino Linotype">
  <Run Typography.NumeralStyle="Normal">1234567890</Run>
  <Run Typography.NumeralStyle="OldStyle">1234567890</Run>
</Paragraph>

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.