This document is archived and information here might be outdated.  Recommended version.


IColor.RGB Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IC > IColor Interface > IColor.RGB Property
ArcGIS Developer Help

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(
  OLE_COLOR RGB
);
[C++]
HRESULT put_RGB(
  OLE_COLOR* RGB
);
[C++]
Parameters
RGB [in]

RGB is a parameter of type OLE_COLOR RGB [out, retval]
RGB is a parameter of type OLE_COLOR*

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