Share via


Typography.GetVariants Method

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

Returns the value of the Variants attached property for a specified dependency object.

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

Syntax

'Declaration
Public Shared Function GetVariants ( _
    element As DependencyObject _
) As FontVariants
public static FontVariants GetVariants(
    DependencyObject element
)

Parameters

Return Value

Type: System.Windows.FontVariants
The current value of the Variants attached property on the specified dependency object.

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.