TerSetMargin
Set the margin values for the sections in the document.
bool TerSetMargin(left,right,top,bottom,repaint)
bool TerSetMarginEx(sect,left,right,top,bottom,header,footer,repaint)
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 modify the current section only, or it can be set to SECT_ALL to modify all sections in the current document. The TerSetMargin function implicitly uses a value of SECT_CUR for this parameter |
int left; | The left margin value in twip units. Set to -1 to leave this parameter unchanged. |
int right; | The right margin value in twip units. Set to -1 to leave this parameter unchanged. |
int top; | The top margin value in twip units. Set to -1 to leave this parameter unchanged. |
int bottom; | The bottom margin value in twip units. Set to -1 to leave this parameter unchanged. |
int header; | The distance of the header text from the top of the page. Set to -1 to leave this parameter unchanged. |
int footer; | The distance of the footer text from the bottom of the page. Set to -1 to leave this parameter unchanged. |
bool repaint; | set to true to repaint the screen after this operation |
Return Value: This function returns true if successful.