Document.HeaderCenter property (Visio)
Contains the text string that appears in the center portion of a document's header. Read/write.
Syntax
expression.HeaderCenter
expression A variable that represents a Document object.
Return value
String
Remarks
You can also set this value in the Center box under Header in the Header and Footer dialog box (click the File tab, click Print, click Print Preview, and then in the Preview group, click Header & Footer).
Both the string that HeaderCenter returns and the string to which you set it can contain escape codes that represent data. These escape codes can be concatenated with other text. For a list of valid escape codes you can use with the HeaderCenter property, see the FooterLeft property.
Example
The following macro shows how to place the string containing "Document Title" into the center portion of the document's header.
Sub HeaderCenter_Example()
'Set header of current document.
ThisDocument.HeaderCenter = "Document Title"
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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기