TextElement.GetForeground(DependencyObject) Metoda

Definicja

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

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

Parametry

element
DependencyObject

Obiekt zależności, dla którego ma pobrać wartość Foreground właściwości.

Zwraca

Brush

Bieżąca wartość dołączonej Foreground właściwości dla określonego obiektu zależności.

Wyjątki

Dotyczy

Zobacz też