TextBlock.SetFontWeight(DependencyObject, FontWeight) Metoda

Definicja

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

public:
 static void SetFontWeight(System::Windows::DependencyObject ^ element, System::Windows::FontWeight value);
public static void SetFontWeight (System.Windows.DependencyObject element, System.Windows.FontWeight value);
static member SetFontWeight : System.Windows.DependencyObject * System.Windows.FontWeight -> unit
Public Shared Sub SetFontWeight (element As DependencyObject, value As FontWeight)

Parametry

element
DependencyObject

Obiekt zależności, na którym należy ustawić wartość FontWeight właściwości.

value
FontWeight

Nowa wartość, na która ma być ustawiona właściwość .

Wyjątki

element to null.

Dotyczy

Zobacz też