Description

For each McGraphObj in the collection, set color properties

Return Type

None  

Syntax

object.SetColors lColor, [mcdoscFlags]

The SetColors Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDisplayedObjects.
lColorRequired. A Long value.

Color to set as a hex number as &HBBGGRR, where BB, GG and RR are values from 00 to FF hex giving the intensities of the Blue, Green and Red components.

mcdoscFlagsOptional. A mcDisplayedObjectsSetColorsFlags enumeration, as described in settings.

If given, determines which of the BorderColor, FillColor and any label's TextColor properties are set to the lColor value. The default is to set all three colors.

Settings

The settings for mcdoscFlags are:

ConstantValueDescription
 mcdoscSetNoColor0

No colors are set

 mcdoscSetBorderColor1

BorderColor is set

 mcdoscSetFillColor2

FillColor is set

 mcdoscSetLabelColor4

TextColor of any label is set

 mcdoscSetAllColors7

BorderColor, FillColor and TextColor are all set (the default)

Remarks

The BorderColor, FillColor and any text label TextColor properties may be optionally set with this method. The default is to set all three to the given color.