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


IColor.RGB Property (ArcObjects .NET 10.6 SDK)
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(
  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

.NET Snippets

Create Dynamic Marker Glyph from Image | Add Graphics Layer to Globe