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

Typography.SlashedZero Property

Gets or sets a value that indicates whether a nominal zero font form should be replaced with a slashed zero.

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

public bool SlashedZero { get; set; }
/** @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


Text using OpenType 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.

.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.