FormattedTextSetForegroundBrush(IBrush, Int32, Int32) Method
Sets foreground brush used for drawing text
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void SetForegroundBrush(
IBrush? foregroundBrush,
int startIndex,
int count
)
Public Sub SetForegroundBrush (
foregroundBrush As IBrush,
startIndex As Integer,
count As Integer
)
member SetForegroundBrush :
foregroundBrush : IBrush *
startIndex : int *
count : int -> unit
Parameters
- foregroundBrush IBrush
- Foreground brush
- startIndex Int32
- The start index of initial character to apply the change to.
- count Int32
- The number of characters the change should be applied to.