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

TerGetCellParam

Get additional cell parameters.

bool TerGetCellParam(type, id, out value)
int TerGetCellParam2(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_CELLThe parent cell id for the requested cell.
CP_LEVELNesting level for the cell.
CP_TEXT_ROTATIONReturns the following values for text rotation:
TEXT_TOP_TO_BOT: Top to bottom
TEXT_BOT_TO_TOP: Bottom to top
TEXT_HORZ:       Horizontal
CP_WIDTHCell width in twips.
CP_ROWRow id which contains the specified cell.
CP_IDId of the specified cell. Same as the 'id' parameter, unless the 'id' parameter is set to -1.
CP_NEXTId of the next cell in the current row.
CP_PREVId of the previous cell in the current row.
CP_ROW_WIDTHWidth (in twips) of the row which contains the specified cell.
CP_PAD_LEFTLeft padding in twips.
CP_PAD_RIGHTRight padding in twips.
CP_PAD_TOPTop padding in twips.
CP_PAD_BOTBot padding in twips.
int id;Cell id to retrieve parameters. Set to -1 to use the cell id of the current line.
int valueThe variable to receive the requested value.

Return Value: If successful, the function returns a TRUE value, and the requested value is returned using the 'value' parameter. A FALSE value indicates an error.

If successful, the TerGetCellParam2 method returns the value of the requested parameter. A return value of CP_ERROR indicates an error.