This property specifies the position of a header or footer. For headers, the position value is the distance between the top of the header and the top of the page. For footers, the position value is the distance between the bottom of the footer and the bottom of the page. All values are in twips. The default value is 567 twips = 1 cm. The SectionCurrent property determines the section, the header or footer belongs to. The property returns -1, if more than one section is specified through the SectionCurrent property and these sections' header or footer position are different.
TXTextControl.HeaderFooterPosition(HeaderFooter) [= position]
Parameter | Description | |
HeaderFooter |
Specifies the header or footer the position of which is to be set. Valid values are listed in Constants. |
Valid values for the HeaderFooter parameter are:
Constant | Description | |
txHeader (1) |
Specifies the header. |
|
txFirstHeader (2) |
Specifies the special header for the first page. |
|
txFooter (4) |
Specifies the footer. |
|
txFirstFooter (8) |
Specifies the special footer for the first page. |
|
txEvenHeader (128) |
Specifies the even header. |
|
txEvenFooter (256) |
Specifies the even footer. |
HeaderFooter: | Integer |
Property value: | Long |
Run time only.
<< TXTextControl.HeaderFooterDeactivated Event | >> TXTextControl.HeaderFooterSelect Method