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 添付プロパティの値を取得する対象の依存関係オブジェクト。

戻り値

Double

指定した依存関係オブジェクトの FontSize 添付プロパティの現在値。

属性

例外

elementnullです。

適用対象

こちらもご覧ください