Skip to main content

GetForeground Method

Gets the value of the attached ForegroundProperty on a control.

Definition​

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

public static IBrush? GetForeground(
Control control
)

Parameters​

  Control
The control.

Return Value​

IBrush
The foreground.

See Also​

Reference​

TextElement Class
Avalonia.Controls.Documents Namespace