TerGetCellParam
Get additional cell parameters.
int TerGetCellParam(type, id)
int type; | The parameter to retrieve: |
| CP_TEXT_ROTATION: | Return the text rotation type. Please refer to the TerCellRotateText function for a list of text rotation type constants. |
| CP_PARENT_CELL | The parent cell id for the requested cell. |
| CP_LEVEL | Nesting level for the cell. |
| CP_TEXT_ROTATION | Returns the following values for text rotation: |
TEXT_TOP_TO_BOT: Top to bottom TEXT_BOT_TO_TOP: Bottom to top TEXT_HORZ: Horizontal
| CP_WIDTH | Cell width in twips. |
| CP_ROW | Row id which contains the specified cell. |
| CP_ID | Id of the specified cell. Same as the 'id' parameter, unless the 'id' parameter is set to -1. |
| CP_NEXT | Id of the next cell in the current row. |
| CP_PREV | Id of the previous cell in the current row. |
| CP_ROW_WIDTH | Width (in twips) of the row which contains the specified cell. |
| CP_PAD_LEFT | Left padding in twips. |
| CP_PAD_RIGHT | Right padding in twips. |
| CP_PAD_TOP | Top padding in twips. |
| CP_PAD_BOT | Bottom padding in twips. |
int id; | Cell id to retrieve parameters. Set to -1 to use the cell id of the current line. |
| int value | The variable to receive the requested value. |
Return Value: If successful, the TerGetCellParam method returns the value of the requested parameter. A return value of CP_ERROR indicates an error.