Represents the color of a one-color object, the foreground or background color of an object with a gradient or patterned
fill. You can set colors to an explicit red-green-blue value (by using the
RGB property) or to a color in the color scheme (by using the
SchemeColor property).
Use the
RGB property to set a color to an explicit red-green-blue value. The following example adds a
comment to cell B2 and then sets the foreground color for the
comment's
fill.
With Workbook.Sheets[1] do begin
With Range['B2', 'B2'].AddComment('Comment text') do begin
Shape.Fill.ForeColor.RGB := RGB(180, 180, 255);
end;
end;