Document.HeaderFooterColor property (Visio)
Specifies the color of the header and footer text. Read/write.
Syntax
expression.HeaderFooterColor
expression A variable that represents a Document object.
Return value
OLE_COLOR
Remarks
Valid values for OLE_COLOR within Microsoft Visio can be one of the following:
&H00 bbggrr, where bb is the blue value between 0 and 0xFF (255), gg the green value, and rr the red value.
&H800000 xx , where xx is a valid GetSysColor index.
For details about the GetSysColor function, search for " GetSysColor " in the Microsoft Platform SDK on MSDN, the Microsoft Developer Network.
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 (click the File tab, click Print, click Print Preview, in the Preview group, click Header & Footer, and then click Choose Font).
Example
The following macro shows how to assign the color blue to text in the header and footer.
Sub HeaderFooterColor_Example()
'Set color of the header of this document to blue.
ThisDocument.HeaderFooterColor = &H00FF0000
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기