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 附加屬性的目前值。

屬性

例外狀況

elementnull

適用於

另請參閱