TextBlock.SetForeground(DependencyObject, Brush) Metodo

Definizione

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

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

Parametri

element
DependencyObject

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

value
Brush

Nuovo valore su cui impostare la proprietà.

Eccezioni

element è null.

Si applica a

Vedi anche