Skip to main content

IResourceStorageBase.ColorSaving Property

Gets or sets a type of format to store the color information.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.Core.dll

Declaration

ColorSavingType ColorSaving { get; set; }

Property Value

Type Description
ColorSavingType

A ColorSavingType enumeration value, indicating the type in which the color is stored.

Available values:

Name Description
OleColor

Stores the color setting in OLE_COLOR format.

ArgbColor

Stores the color setting in ARGB format.

Color

Stores the color setting as a system defined color Color.

Remarks

If the color has ARGB format, that is: 8 bit for Alpha-Transparency, 8 bit Red, 8 bit Green, 8 bit Blue, then you should set the ColorSaving value to ColorSavingType.ArgbColor. The FromArgb method is used to create a Color structure from a 32-bit ARGB value.

To store color in OLE color format, set the ColorSaving to the ColorSavingType.OleColor value. The ColorTranslator class methods are used internally to convert the supplied OLE color value to a Color structure and back.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColorSaving property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also