Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

Changes the RGB value of a specified Color object. Color must be a palette color. Any objects that reference this color object will be updated to use the new RGB values. For .xlsx files, this alters the legacy palette, which is used when opening the file in Excel 2003.

C#
vb.net

Parameters

color
The Color object to modify. This must be a Palette color (i.e. Color.IsPaletteColor must return true).
red
The red component of the desired color. Must be between 0 and 255.
green
The green component of the desired color. Must be between 0 and 255.
blue
The blue component of the desired color. Must be between 0 and 255.

Examples

C#
vb.net
  • No labels