Export (0) Print
Expand All

Typography.DiscretionaryLigatures Property

Gets or sets a value that determines whether discretionary ligatures are enabled.

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

'Declaration
Public Property DiscretionaryLigatures As Boolean
'Usage
Dim instance As Typography
Dim value As Boolean

value = instance.DiscretionaryLigatures

instance.DiscretionaryLigatures = value
/** @property */
public boolean get_DiscretionaryLigatures ()

/** @property */
public void set_DiscretionaryLigatures (boolean value)

public function get DiscretionaryLigatures () : boolean

public function set DiscretionaryLigatures (value : boolean)

You cannot use this property in XAML.

Property Value

true if discretionary ligatures are enabled; otherwise, false. The default value is false.

Discretionary ligatures are designed to be ornamental, and not specifically designed for readability. The following text displays discretionary ligature glyphs for the Pericles font.

Example of discretionary set of ligatures


Text using OpenType discretionary ligatures

The following code example shows how to define discretionary ligature glyphs for the Pericles font, using the DiscretionaryLigatures property.

<Paragraph FontFamily="Pericles" Typography.DiscretionaryLigatures="True">
  <Run Typography.StylisticAlternates="1">CO</Run>
  <Run Typography.StylisticAlternates="1">LA</Run>
  <Run Typography.StylisticAlternates="1">LE</Run>
  <Run Typography.StylisticAlternates="1">LI</Run>
  <Run Typography.StylisticAlternates="1">LL</Run>
  <Run Typography.StylisticAlternates="1">LO</Run>
  <Run Typography.StylisticAlternates="1">LU</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

Community Additions

ADD
Show:
© 2014 Microsoft