Typography.SlashedZero Property
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
/** @property */ public boolean get_SlashedZero () /** @property */ public void set_SlashedZero (boolean value)
public function get SlashedZero () : boolean public function set SlashedZero (value : boolean)
You cannot use this property in XAML.
Property Value
true if slashed zero forms are enabled; otherwise, false. The default value is false.OpenType fonts support a slashed zero numeral format to emphasize the difference between the letter "O" and the numeral "0". The slashed zero numeral is often used for identifiers in financial and business information.
The following text displays a sample order identifier using the Miramonte font. The first line uses standard numerals. The second line used slashed zero numerals to provide better contrast with the uppercase "O" letter.
Example of slashed zero numerals
The following code example shows how to define slashed zero numerals for the Miramonte font, using the SlashedZero property.
<Paragraph FontFamily="Miramonte"> <Run>Order #0048-OTC-390</Run> <LineBreak/> <Run Typography.SlashedZero="True">Order #0048-OTC-390</Run> </Paragraph>
If the value of SlashedZero is true and the selected font does not support slashed zero forms, the default form of the numeral is displayed.
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.