TextBlock.

SetForeground(Control, IBrush) Method

Summary

Sets the value of the attached ForegroundProperty on a control.
Namespace
Avalonia.Controls
Containing Type
TextBlock

Syntax

public static void SetForeground(Control control, IBrush value)

Parameters

Name Type Description
control Control The control.
value IBrush The property value to set.

Return Value

Type Description
void The font family.