SetRGBColor Method (IColor)

SetRGBColor Method (IColor) | Send Feedback
See Also Example

Red
  RGB color model value for red

Green
  RGB color model value for green

Blue
  RGB color model value for blue

Sets the color to the specified RGB (Red, Green, Blue) color model values.

# Syntax

Visual Basic |
--- | ---
    Sub SetRGBColor( _
       ByVal Red As System.Integer, _
       ByVal Green As System.Integer, _
       ByVal Blue As System.Integer _
    )

C# |
--- | ---
    void SetRGBColor(
       System.int Red,
       System.int Green,
       System.int Blue
    )

JavaScript |
--- | ---
    SetRGBColor(
       Red : Number,
       Green : Number,
       Blue : Number
    )

COM native C++ |
--- | ---
    HRESULT SetRGBColor(
       LONG Red,
       LONG Green,
       LONG Blue
    )

C++ |
--- | ---
    DSRESULT SetRGBColor(
       long Red,
       long Green,
       long Blue
    )

#### Parameters

Red
  RGB color model value for red
Green
  RGB color model value for green
Blue
  RGB color model value for blue

# Example

Change Colors of User-interface Elements (C#)
Change Colors of User-interface Elements (VB.NET)
Change Colors of User-interface Elements (VBA)

# See Also

####

IColor Interface
IColor Members
IColor::GetRGB Method
IApplication::GetRGBColor Method

# Availability

DraftSight V1R1.1