Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Typography.StandardSwashes Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public int StandardSwashes { get; set; }

Property Value

Type: System.Int32

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

This property gets or sets a value on the object that owns a Typography property, which is the only way to access a Typography class instance. In addition, this property supports an attached property usage so that it can be set on text-containing objects in XAML.

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

Text using OpenType standard and swash glyphs

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

Text using OpenType swashes

Example of swashes used for capital letters

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

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.

<object Typography.StandardSwashes="int"/>

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft