Typography.SetVariants(DependencyObject, FontVariants) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定依赖对象的附加属性的值 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
要将属性设置为的新值。
例外
当 element 为 null..