HeaderFooterColor property
Specifies the color of the header and footer text.
Version added
2002
Syntax
| |
| |
colorRet |
OLE_COLOR. The color of the header and footer text. |
object |
Required. An expression that returns a Document object. |
colorVal |
Required OLE_COLOR. The new color for the header and footer text. |
Remarks
Valid values for an OLE_COLOR property within Visio can be one of the following:
- &H00bbggrr, where bb is the blue value between 0 and 0xFF (255), gg the green value, and rr the red value.
- &H800000x, where xx is a valid GetSysColor index.
For details about the GetSysColor function, search for "GetSysColor" in the Microsoft Platform SDK on the Microsoft Developer Network (MSDN) Web site.
The OLE_COLOR data type is used for properties that return colors. When a property is declared as OLE_COLOR, the Properties window will display a color-picker dialog box that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent.
You can also set this value in the Color box in the Choose Font dialog box (on the View menu, click Header and Footer, and then click Choose Font).
Example
The following macro is used to assign the color blue to text in the header and footer.
Sub SetHeaderFooterColor()
'Set color of the header of this
'document to blue
ThisDocument.HeaderFooterColor = &H00FF0000
End Sub
After running this macro, the header text will display blue text.