Typography.GetVariants(DependencyObject) 方法

定義

傳回所指定相依性物件的 Variants 附加屬性值。

public:
 static System::Windows::FontVariants GetVariants(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.FontVariants GetVariants (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetVariants : System.Windows.DependencyObject -> System.Windows.FontVariants
Public Shared Function GetVariants (element As DependencyObject) As FontVariants

參數

element
DependencyObject

要擷取 Variants 屬性值的相依性物件。

傳回

FontVariants

所指定相依性物件上 Variants 附加屬性的目前值。

屬性

適用於

另請參閱