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

TerDeleteStyle

Delete a stylesheet item.

BOOL TerDeleteStyle( StyleId, name)
int StyleId; Style id to delete. Please note that the default style ids 0 and 1 can not be deleted. Set this parameter to -1 to specify the name of the style item to delete.
string name;

Name of style item to delete. This parameter is ignored when StyleId is non-zero.

Any paragraph or font id referring the style id being deleted are modified to refer to the default style ids instead.

Return Value: This function returns true if successful.