TextBlock.SetFontStyle(DependencyObject, FontStyle) Metodo

Definizione

Imposta il valore della proprietà associata FontStyle su un oggetto dipendenza specificato.

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)

Parametri

element
DependencyObject

Oggetto dipendenza per cui impostare il valore della proprietà FontStyle.

value
FontStyle

Nuovo valore su cui impostare la proprietà.

Eccezioni

element è null.

Si applica a

Vedi anche