TerGetMarginEx
Retrieve the margin values for a section in the document.
int TerGetMarginEx(sect,out left,out right,out top,out bottom,out header,out footer)
int sect; | The section id to modify. This parameter can assume a value between 0 and 'TotalSects-1'. It can also be set to SECT_CUR to specify the current section. |
int left; | The variable to retrieve the left margin value in twip units. |
int right; | The variable to retrieve the right margin value in twip units. |
int top; | The variable to retrieve the top margin value in twip units. |
int bottom; | The variable to retrieve the bottom margin value in twip units. |
int header; | The variable to retrieve the distance of the header text from the top of the page. |
int footer; | The variable to retrieve the distance of the footer text from the bottom of the page. |
Comment: Any of the variable variables can be set to null, in which case the editor ignores the argument.
Return Value: This function returns the total number of sections in the document if successful. Otherwise it returns 0.