This documentation is archived and is not being maintained.

Typography.Fraction Property

Gets or sets a FontFraction enumerated value that indicates the fraction style.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public FontFraction Fraction { get; set; }
/** @property */
public FontFraction get_Fraction ()

/** @property */
public void set_Fraction (FontFraction value)

public function get Fraction () : FontFraction

public function set Fraction (value : FontFraction)

You cannot use this property in XAML.

Property Value

A FontFraction enumerated value. The default value is Normal.

OpenType fonts support styles for fractions, including slashed and stacked.

The following text displays fraction styles for the Palatino Linotype font.

Example of slashed and stacked fraction styles

Text using OpenType slashed and stacked fractions

The following code example shows how to define fraction styles for the Palatino Linotype font, using the Fraction property.

<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Slashed">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8
<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Stacked">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8

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