TX Text Control ActiveX Documentation

TXTextControl.HeaderFooterActivate Method

Description:Activates or deactivates a header or footer. The SectionCurrent property determines the section, the header or footer of which is activated. During activation the current input focus is set to the header or footer area, so that the user can alter the text and/or the format. During deactivation the input focus is set back to the main text.

Syntax:
TXTextControl.HeaderFooterActivate HeaderFooter
ParameterDescription
HeaderFooterSpecifies the header or footer to activate. Valid values are described in Constants.

Return Value:The method returns True, if a header or footer could be activated, otherwise it returns False.

Constants:Valid values for the HeaderFooter parameter are:

ConstantDescription
0A currently activated header or footer is deactivated.

txHeader (1)Activates the header.

txFirstHeader (2)Activates the special header of the first page.

txFooter (4)Activates the footer.

txFirstFooter (8)Activates the special footer of the first page.

Data Types:
HeaderFooter:Integer
Return value:Boolean

See also:Headers and Footers, Headers and Footers.