Sets the line color for the shape to be the specified custom RGB value, and returns the generated . This method allows a shape to have a line color not defined in the worksheet's Palette.

 public virtual Color SetCustomLineColor(int red, int green, int blue)
Public Overridable Function SetCustomLineColor(ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer) As Color

The red component of the RGB value.

The green component of the RGB value.

The blue component of the RGB value.

A Color object representing the line color.

If the given red, green, or blue value is not between 0 and 255.