ArcObjects Library Reference (Display)  

IColor.RGB Property

The RGB value of color.

[Visual Basic .NET]
Public Property RGB As Integer
[C#]
public int RGB {get; set;}
[C++]
HRESULT get_RGB(
  long* RGB
);
[C++]
HRESULT put_RGB(
  long RGB
);
[C++]

Parameters

RGB [out, retval]   RGB is a parameter of type long RGB [in]   RGB is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

RGB returns the Long (ASCII) number calculated from the Red, Green and Blue color attributes.

Remarks

Set the UseWindowsDithering to TRUE to match the returned value from VB's RGB() function.

See Also

IColor Interface