Color Property
The Color property returns or sets the color. Returns a Long.
Syntax
object.Color
object.Color = Color
Parameter | Type | Description |
Color | grfColor | required, see remarks |
Remarks
Use the enumeration [grfColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color.
Example 1
This example demonstrates how to return the color of a font.
Debug.Print FontFormat.Color
Example 2
This example demonstrates how to set the color of a font to green.
FontFormat.Color= grfColorGreen
Used by: AutoMFont object, AutoMarker object