TE Edit Control Win32 / Win64 Help
Product page

TerGetStyleInfo

Retrieve information for a style item id.

int TerGetStyleInfo(hWnd, id, name, type)
int TerGetStyleInfoU(hWnd, id, name, type)
HWND hWnd;The handle of the window to be accessed
int id;Style item id to retrieve information.
LPBYTE name;

The location to receive the style name.

The TerGetStyleInfoU method uses a Unicode style item name string.

LPINT type;The location to receive the style type. The style type can be one of the following constants:
SSTYPE_PARA:Paragraph style
SSTYPE_CHAR:Character style

Return Value: The function returns total number of style items available in the document A return value of -1 indicates an error.