TE Edit Control Win32 / Win64 Help
Product page

TerGetSectParam

Get the section parameters.

int TerGetSectParam(hWnd, id, type)
HWND hWnd;The handle of the window to be accessed
int id;Section id (0 to Total Sections-1) to retrieve parameters.
int type;The parameter to retrieve:
SP_FLAGS:Returns the flags bits associated with the section id. Please use the AND parameter with the return value to check if one of the following flags is applicable:
SECT_NEW_PAGE:Start the section on a new page.
SECT_RESTART_PAGE_NORestart page numbers.
SECT_VALIGN_CTRVertically center align the page text.
SECT_VALIGN_BOTVertically bottom align the page text.
SECT_LINESection uses line numbering.
SECT_SNAP_LINE_GRIDText within the section is aligned to a grid.
SP_GUTTER_MARGGutter margin in twips.
SP_LINE_STEP:Returns the steps in which the line numbering is applied when the SECT_LINE flag (see SP_FLAGS) is applied. A value of 0 or 1 indicates continuous line numbering.

Return Value: The function returns the value for the requested parameter. It returns FP_ERROR to indicate an error condition.