TextBlock.GetFontWeight(DependencyObject) Metoda

Definicja

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

public:
 static System::Windows::FontWeight GetFontWeight(System::Windows::DependencyObject ^ element);
public static System.Windows.FontWeight GetFontWeight (System.Windows.DependencyObject element);
static member GetFontWeight : System.Windows.DependencyObject -> System.Windows.FontWeight
Public Shared Function GetFontWeight (element As DependencyObject) As FontWeight

Parametry

element
DependencyObject

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

Zwraca

FontWeight

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

Wyjątki

element to null.

Dotyczy

Zobacz też