TextBlock.SetForeground(DependencyObject, Brush) Metoda

Definicja

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

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)

Parametry

element
DependencyObject

Obiekt zależności, na którym należy ustawić wartość Foreground właściwości.

value
Brush

Nowa wartość, na która ma być ustawiona właściwość .

Wyjątki

element to null.

Dotyczy

Zobacz też