Table of Contents

Class SystemDrawingColorCache

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

Provides a cached collection of Color instances corresponding to all KnownColor values.

public static class SystemDrawingColorCache
Inheritance
SystemDrawingColorCache

Remarks

This class improves performance by precomputing and caching all Color instances derived from KnownColor values. Use the Get(KnownColor) method to retrieve a cached Color instance.

Methods

Get(KnownColor)

Retrieves the Color associated with the specified KnownColor. This method uses a cached collection of colors for improved performance.