語言

TextBlock.GetFontSize(DependencyObject) 方法

定義

回傳指定相依物件所附屬性的 FontSize 值。

public:
 static double GetFontSize(System::Windows::DependencyObject ^ element);
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontSizeConverter))]
public static double GetFontSize(System.Windows.DependencyObject element);
[<System.ComponentModel.TypeConverter(typeof(System.Windows.FontSizeConverter))>]
static member GetFontSize : System.Windows.DependencyObject -> double
Public Shared Function GetFontSize (element As DependencyObject) As Double

參數

element
DependencyObject

用來取得附加屬性值 FontSize 的相依物件。

傳回

附加屬性在指定相依物件上的 FontSize 當前值。

屬性

例外狀況

element 是 null。

適用於

另請參閱