TerGetStyleInfo
Retrieve information for a style item id.
int TerGetStyleInfo( id, out name, out type)
int id; | Style item id to retrieve information. |
Upon a successful return from this method, the following information can be retrieved by using the TerGetOutInt and TerGetOutStr methods:
String name; | The style name. Upon a successful return from this method, the name can be retrieve as following: name=tej.TerGetOutStr("Name") |
int type; | The style type. The style type can be one of the following constants: |
| SSTYPE_PARA: | Paragraph style |
| SSTYPE_CHAR: | Character style |
Upon a successful return from this method, the type value can be retrieve as following:
type=tej.TerGetOutInt("Type")Return Value: The function returns total number of style items available in the document A return value of -1 indicates an error.