Typography.SetVariants(DependencyObject, FontVariants) 方法

定義

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

public:
 static void SetVariants(System::Windows::DependencyObject ^ element, System::Windows::FontVariants value);
public static void SetVariants (System.Windows.DependencyObject element, System.Windows.FontVariants value);
static member SetVariants : System.Windows.DependencyObject * System.Windows.FontVariants -> unit
Public Shared Sub SetVariants (element As DependencyObject, value As FontVariants)

參數

element
DependencyObject

要設定 Variants 屬性值的相依性物件。

value
FontVariants

要設定屬性的目標新值。

例外狀況

elementnull 時引發。

適用於

另請參閱