Table of Contents

Method FindOrAddColor

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

FindOrAddColor(Color?, string?)

Finds an existing color in the list or adds the specified color if it does not exist.

public virtual Color? FindOrAddColor(Color? value, string? title = null)

Parameters

value Color

The Color to find or add.

title string

An optional title associated with the color. If null, no title is assigned.

Returns

Color

The existing Color if found; otherwise, the newly added Color. Returns null if the operation fails.