RGB method

This method returns a decimal value that represents a color.

Defined in

Application

Syntax

public int RGB(int red, int green, int blue)

Parameters

int red

Specifies the red value (0-255).

int green

Specifies the green value (0-255).

int blue

Specifies the blue value (0-255).

Return Value

color

int. A decimal value represents a color.

Usage

Sets color for a table, cell, range or font.

See examples

Example: RGB method

Related information

Color property in Border.

Color property in Font.

BackColor property in Range.

BackColor property in TextHeaderFooter.

BackColor property in TextParagraph.

BackColor property in TextRange.

BackColor property in TextTable.

BackColor property in TextTableCell.

BackColor property in TextTableRow.