TextBlock.GetFontSize(DependencyObject) Metoda

Definicja

Zwraca wartość dołączonej FontSize właściwości dla określonego obiektu zależności.

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

Parametry

element
DependencyObject

Obiekt zależności, z którego ma pobrać wartość dołączonej FontSize właściwości.

Zwraca

Bieżąca wartość dołączonej FontSize właściwości dla określonego obiektu zależności.

Atrybuty

Wyjątki

element to null.

Dotyczy

Zobacz też