Typography.StandardSwashes Property

Gets or sets a value that specifies the index of a standard swashes form.

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

public int StandardSwashes { get; set; }
/** @property */
public int get_StandardSwashes ()

/** @property */
public void set_StandardSwashes (int value)

public function get StandardSwashes () : int

public function set StandardSwashes (value : int)

You cannot use this property in XAML.

Property Value

The index of the standard swashes form. The default value is 0 (zero).

Swashes are decorative glyphs that use elaborate ornamentation often associated with calligraphy. The following text displays standard and swash glyphs for the Pescadero font.

Example of standard and swash glyphs

Text using OpenType standard and swash glyphs

Swashes are often used as decorative elements in short phrases such as event announcements. The following text uses swashes to emphasize the capital letters of the name of the event.

Example of swashes used for capital letters

Text using OpenType swashes

The following code example shows how to define swashes for a font, using the StandardSwashes property.

<Paragraph FontFamily="Pescadero" TextBlock.TextAlignment="Center">
  Wishing you a<LineBreak/>
  <Run Typography.StandardSwashes="1" FontSize="36">Happy New Year!</Run>

If the value of StandardSwashes is greater than zero and the selected font does not support standard swashes forms at the given index value, the default form of the letter 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

Community Additions