Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

ElementGrid Class

The ElementGrid object represents a Custom Table, which is used to display custom data in tabular format on a diagram, the data being provided by the user rather than generated by the system.

The ElementGrid object is accessible from an Element object, using the GetElementGrid() method.

Associated table in .EAP file

t_object

ElementGrid Methods

Method

Remarks

See also

GetCell (int nrow, int ncell)

Variant

Notes: The cell value is return as a variant value.

Parameters:

  • nRow: Integer - the number of the row containing the cell
  • nCell: Integer - the number of the cell in the row (the column number)

GetColumnCount ()

Integer

Notes: Returns the number of columns in the grid.

GetRowCount ()

Integer

Notes: Returns the number of rows in the grid.

SetCell (int nRow, int nCell, variant sValue)

Boolean

Notes: Sets a value in the specified cell.

Parameters:

  • nRow: Integer - specifies the row into which to insert the value
  • nCell: Integer - specifies the cell (column number) into which to insert the value
  • sValue: Variant - specifies the value to set in the cell

SetGridSize (int nRows, int nColumns)

Boolean

Notes: Sets the size of the grid in rows and columns. The size can be set and reset; any data outside the bounds of the new grid size will be lost on resize.

Parameters:

  • nRows: Integer - the number of rows in the table grid
  • nColumns: Integer - the number of columns in the table grid

Learn more