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

TerGetStyleInfo

Retrieve information for a style item id.

int TerGetStyleInfo( id, out name, out type)
int id;Style item id to retrieve information.
string name;The variable to receive the style name.
int type;The variable 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.