Skip to main content

XlColor.FromArgb(Byte, Byte, Byte) Method

Creates the XlColor object from the specified 8-bit color values (red, green, and blue).

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public static XlColor FromArgb(
    byte red,
    byte green,
    byte blue
)

Parameters

Name Type Description
red Byte

An 8-bit integer that specifies the red component value for the new color. Valid values are 0 through 255.

green Byte

An 8-bit integer that specifies the green component value for the new color. Valid values are 0 through 255.

blue Byte

An 8-bit integer that specifies the blue component value for the new color. Valid values are 0 through 255.

Returns

Type Description
XlColor

An XlColor class instance.

Remarks

The alpha value is implicitly 255 (fully opaque).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FromArgb(Byte, Byte, Byte) method.

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