HeaderCenter Property [Visio 2003 SDK Documentation]

Contains the text string that appears in the center portion of a document's header.

strRet = object**.HeaderCenter**

object**.HeaderCenter** = stringExpression

strRet     String. The text in the center portion of the header.

object     Required. An expression that returns a Document object.

stringExpression     Required String. New text for the center portion of the header.

Version added

2002

Remarks

You can also set this value in the Center box under Header in the Header and Footer dialog box (View menu).

Both strRet and strExpression 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

Applies to | Document object

See Also | FooterCenter property | FooterLeft property | FooterMargin property | FooterRight property | HeaderFooterColor property | HeaderFooterFont property | HeaderLeft property | HeaderMargin property | HeaderRight property