語言

TextElement.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

設定屬性的新值。

例外狀況

d 是 null。

適用於

另請參閱