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。