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
colors
IReadOnlyFontAndColorColors to change.
value
ColorNew color value.
isBackground
boolIf
true
, background color is assigned; otherwise foreground color is assigned.action
ActionWhen color value is really changed, this action is called.