Category Selection, Object ProSelection

Function ProSelectionDwgtblcellGet


Description
For a ProSelection representing a cell of a drawing table, returns the table segment, row and column of the cell.

This function returns row and column indices starting from 0.0. Add one to these values to obtain the correct row and column indices for use with other ProDwgtable functions.

Replacement in Object TOOLKIT: pfcSelection::SelTableCell
pfcSelection::SelTableSegment
Synopsis
#include <ProSelection.h>
ProErrorProSelectionDwgtblcellGet(
ProSelection selection
/* (In)
ProSelection representing a cell of a drawing table.
*/
int* table_segment
/* (Out)
Corresponding table segment, equals sel_elem_id of selection.
*/
int* row
/* (Out)
row of table which contains the cell.
*/
int* column
/* (Out)
column of the table which contains the cell.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the selected-point of the ProSelection.

Manual References:

  1. Model-Based Definition and Drawing Tables: Selecting Drawing Tables and Cells
  2. User Interface: Selection: The Selection Object

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )
  2. pt_examples ( TestDrawTbl.c )