Skip to main content

SetForeground Method

Sets the value of the attached ForegroundProperty on a control.

Definition

Namespace: Avalonia.Controls.Documents
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public static void SetForeground(
Control control,
IBrush? value
)

Parameters

  Control
The control.
  IBrush
The property value to set.

See Also

Reference

TextElement Class
Avalonia.Controls.Documents Namespace