Share via


Typography.ContextualAlternates Attached Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that determines whether custom glyph forms can be used based upon the context of the text being rendered.

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

Syntax

'Declaration
See GetContextualAlternates, SetContextualAlternates
See GetContextualAlternates, SetContextualAlternates

Property Value

Type: System.Boolean
true if custom glyph forms can be used; otherwise, false. The default value is true.

Remarks

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.

Random contextual alternates provide multiple substitute glyphs for a single character. When implemented with script-type fonts, this feature can simulate handwriting by using of a set of randomly chosen glyphs with slight differences in appearance.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.