ArcObjects Library Reference  (Display)    

IColor.RGB Property

The RGB value of color.

[Visual Basic 6.0]
Property RGB As OLE_COLOR
[Visual Basic .NET]
Public Property RGB As Integer
[C#]
public int RGB {get; set;}
[Java]
public OLECOLOR getRGB()
throws
    IOException,
    AutomationException
[Java]
public void setRGB(
OLE_COLOR pLE_COLOR
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_RGB(
  OLE_COLOR* RGB
);
[C++]
HRESULT put_RGB(
  OLE_COLOR RGB

);

[C++]

Parameters

RGB [out, retval]

  RGB is a parameter of type OLE_COLOR

RGB [in]

  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

 


Feedback Send feedback on this page