TE Edit Control Win32 / Win64 Help
Product page

TerGetTabStop

Return the parameters for a tab stop and the number of tab stop for a line.

int TerGetTabStop(hWnd, LineNo, TabNo, pPos, pType, pFlag)
int TerGetTabStop2(hWnd, type, LineNo, TabNo, pPos, pType, pFlag)
HWND hWnd;The handle of the window to be accessed
int type;This argument specifies the meaning of the 'LineNo' argument:
PID_LINE:The 'LineNo' parameter specifies the text line number.
PID_PARA:The 'LineNo' parameter specifies the paragraph id.
PID_TAB:The 'L:ineNo' parameter specifies the tab id.
long LineNo;Line number (or paragraph or tab id) to get the tab parameters for. Set to -1 to get the tab stop parameters for the current line.
int TabNo;Tab number to inquire. To simply get the tab count for the line, set the TabNo parameter to -1.
LPINT pPos;The pointer to receive the tab position (in twips).
LPINT pType;The pointer to receive the tab type:
TAB_LEFT:Left aligned tab
TAB_RIGHT:Right aligned tab
TAB_CENTER:Center aligned tab
TAB_DECIMAL:Decimal aligned tab
LPINT pFlag;The pointer to receive the tab flag:
TAB_DOT:Dot leader
TAB_HYPH:Hyphen leader
TAB_ULINE:Underline leader

Return Value: This function returns the number of tab stops for the line.