語言

TextElement.SetFontSize(DependencyObject, Double) 方法

定義

設定指定相依物件附加屬性的值 FontSize 。

public:
 static void SetFontSize(System::Windows::DependencyObject ^ element, double value);
public static void SetFontSize(System.Windows.DependencyObject element, double value);
static member SetFontSize : System.Windows.DependencyObject * double -> unit
Public Shared Sub SetFontSize (element As DependencyObject, value As Double)

參數

element
DependencyObject

是用來設定屬性值 FontSize 的相依物件。

value
Double

設定屬性的新值。

例外狀況

d 是 null。

適用於

另請參閱