TE Edit Control .NET Core / .NET Framework Help
Product page

TerCreateTabId

Create a tab id.

int TerCreateTabid( TabInfo)
tc.StrTabTabInfo;This structure is used to pass the tab stop information for the new tab id. The StrTab structure includes these variables:
int count;number of tab stop (max 20)
int pos[20];tab position for each tab stop in twips. The tab positions must be specified in the ascending order
int type[20];The tab type for each tab stop:
TAB_LEFT:Left tab
TAB_RIGHT:Right tab
TAB_CENTER:Center tab
TAB_DECIMAL:Decimal tab
;BYTE flags[20]The tab flags for each tab stop:
TAB_NONE
Tab with no leaders (default)
TAB_DOT:Tab with dot leaders
TAB_HYPH:Tab with hyphen leaders
TAB_ULINE:Tab with underline leader

Description: The tab id created by this function can be used in the TerCreateParaId function.

Return Value: This function returns a non-zero tab id if successful, otherwise it returns -1.