
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 | |
| HeaderFooter | Specifies the part of the text that is to be selected. See the Constants section for valid values. |
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 | |
| 0 | 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. |
| 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