語言

TextBlock.SetFontStretch(DependencyObject, FontStretch) 方法

定義

設定指定相依物件所 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。

適用於

另請參閱