TextElement.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, dla którego ma zostać ustawiona wartość Foreground właściwości.

value
Brush

Nowa wartość ustawiania właściwości na .

Wyjątki

Dotyczy

Zobacz też