TextBlock.GetForeground(DependencyObject) Metodo

Definizione

Restituisce il valore della proprietà associata Foreground relativa a un oggetto dipendenza specificato.

public:
 static System::Windows::Media::Brush ^ GetForeground(System::Windows::DependencyObject ^ element);
public static System.Windows.Media.Brush GetForeground (System.Windows.DependencyObject element);
static member GetForeground : System.Windows.DependencyObject -> System.Windows.Media.Brush
Public Shared Function GetForeground (element As DependencyObject) As Brush

Parametri

element
DependencyObject

Oggetto dipendenza da cui recuperare il valore della proprietà associata Foreground.

Restituisce

Brush

Valore corrente della proprietà associata Foreground per l'oggetto dipendenza specificato.

Eccezioni

element è null.

Si applica a

Vedi anche