Skip to main content

SetForegroundBrush(IBrush, Int32, Int32) Method

Sets foreground brush used for drawing text

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void SetForegroundBrush(
IBrush? foregroundBrush,
int startIndex,
int count
)

Parameters​

  IBrush
Foreground brush
  Int32
The start index of initial character to apply the change to.
  Int32
The number of characters the change should be applied to.

See Also​

Reference​

FormattedText Class
SetForegroundBrush Overload
Avalonia.Media Namespace