GetForeground Method
Gets the value of the attached ForegroundProperty on a control.
Definition
Namespace: Avalonia.Controls.Documents
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static IBrush? GetForeground(
Control control
)
Public Shared Function GetForeground (
control As Control
) As IBrush
static member GetForeground :
control : Control -> IBrush
Parameters
- Control
- The control.
Return Value
IBrush
The foreground.