TextBlock.SetFontStretch(DependencyObject, FontStretch) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定依赖对象的附加属性的值 FontStretch 。
public:
static void SetFontStretch(System::Windows::DependencyObject ^ element, System::Windows::FontStretch value);
public static void SetFontStretch(System.Windows.DependencyObject element, System.Windows.FontStretch value);
static member SetFontStretch : System.Windows.DependencyObject * System.Windows.FontStretch -> unit
Public Shared Sub SetFontStretch (element As DependencyObject, value As FontStretch)
参数
- element
- DependencyObject
要对其设置属性值的 FontStretch 依赖对象。
- value
- FontStretch
要将属性设置为的新值。
例外
element 是 null。