Table of Contents

Method ChangeColor

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 IReadOnlyFontAndColor

Colors to change.

value Color

New color value.

isBackground bool

If true, background color is assigned; otherwise foreground color is assigned.

action Action

When color value is really changed, this action is called.