SetFillColor Method

Structured Graphics Control

Sets the color fill for the shape. Can be used to set foreground and background fills to different colors.

Syntax

HTML<PARAM NAME="Line0001" VALUE="SetFillColor
(
rForeColor, gForeColor, bForeColor [, rBackColor, gBackColor, bBackColor ] )">
ScriptingSGObj.SetFillColor( rForeColor, gForeColor, bForeColor [, rBackColor, gBackColor, bBackColor ] )
FileSetFillColor( rForeColor, gForeColor, bForeColor [, rBackColor, gBackColor, bBackColor ] )

Parameters

rForeColor, gForeColor, bForeColor
Red, green, and blue values for the foreground color. Each value is an integer in the range 0–255.
rBackColor, gBackColor, bBackColor
Optional. The red, green, and blue values for the background color. Each value is an integer in the range 0–255.

Example

The following example sets the fill color to solid blue.

<PARAM NAME="Line0001" VALUE="SetFillColor(0,0,255)">

Right-click inside the frame and choose View Source to see the HTML code for this example.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.