TXTextControl.TXTextControl.HeaderFooterSelect Method

This method determines whether a certain Text Control property or method manipulates a header or a footer or the main text. The SectionCurrent property determines the section, the header or footer of which is selected. This method does not activate a header or footer.


TXTextControl.HeaderFooterSelect HeaderFooter
Parameter Description

Specifies the part of the text that is to be selected. See the Constants section for valid values.

Return Value

The method returns True, if a header or footer could be selected, otherwise it returns False.


Valid values for the HeaderFooter parameter are:

Constant Description

Text Control performs automatic selection, which means that a certain property or method manipulates the text part with the current input position.

txHeader (1)

Selects the header.

txFirstHeader (2)

Selects the special header for the first page.

txFooter (4)

Selects the footer.

txFirstFooter (8)

Selects the special footer for the first page.

txMainText (16)

Selects the main text.

txEvenHeader (128)

Selects the even header.

txEvenFooter (256)

Selects the even footer.

Data Types

HeaderFooter: Integer
Return value: Boolean


This Basic example selects the header, alters the text of the header and returns to the automatic mode:

TXTextControl1.HeaderFooterSelect txHeader
TXTextControl1.Text = "This is the header's text"
TXTextControl1.HeaderFooterSelect 0

See Also