Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Sets the line color for the shape to be the specified custom RGB value, and returns the generated

Msdn
System.Drawing.Color

...

System.Drawing.Color
1Color
. This method allows a shape to have a line color not defined in the worksheet's Palette.

Signature
C#
C#
 public virtual Color SetCustomLineColor(int red, int green, int blue)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Overridable Function SetCustomLineColor(ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer) As Color
{signature}
{parameters}
{param:red}The red component of the RGB value.{param}
{param:green}The green component of the RGB value.{param}
{param:blue}The blue component of the RGB value.{param}
{returns}A {{Color}} object representing the line color.{returns}
{exceptions}
{exception:System.ArgumentOutOfRangeException}If the given red, green, or blue value is not between 0 and 255.{exception}
Parameters
Param
red
red

The red component of the RGB value.

Param
green
green

The green component of the RGB value.

Param
blue
blue

The blue component of the RGB value.

Returns

A Color object representing the line color.

Exceptions
Exception
System.ArgumentOutOfRangeException
System.ArgumentOutOfRangeException

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