Method ChangeColor
ChangeColor(ref IReadOnlyFontAndColor?, Color?, bool, Action?)
Creates new IReadOnlyFontAndColor instance and assigns it to
colors with the modified background or foreground color value.
public static void ChangeColor(ref IReadOnlyFontAndColor? colors, Color? value, bool isBackground, Action? action = null)
Parameters
colorsIReadOnlyFontAndColorColors to change.
valueColorNew color value.
isBackgroundboolIf
true, background color is assigned; otherwise foreground color is assigned.actionActionWhen color value is really changed, this action is called.