TextBlock.SetFontStyle(DependencyObject, FontStyle) Methode

Definitie

Hiermee stelt u de waarde van de FontStyle gekoppelde eigenschap in voor een opgegeven afhankelijkheidsobject.

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

Parameters

element
DependencyObject

Het afhankelijkheidsobject waarop de waarde van de FontStyle eigenschap moet worden ingesteld.

value
FontStyle

De nieuwe waarde voor het instellen van de eigenschap op.

Uitzonderingen

element is null.

Van toepassing op

Zie ook