Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx GridToValues(DataGridView grid, TMtx dst, Boolean iscomplex, Boolean headers) | Copy DataGrid cells to Matrix. |
| 2 | TMtx GridToValues(DataGridView grid, TMtx dst, Int32 gridrow, Int32 gridcol, Int32 Row, Int32 Col, Int32 RowCount, Int32 ColCount, Boolean iscomplex) | Copy grid subarray to matrix. |
| 3 | TVec GridToValues(DataGridView grid, TVec dst, Boolean iscomplex, Boolean vertical, Boolean headers) | Copies DataGrid elements to vector. |
| 4 | TVec GridToValues(DataGridView grid, TVec dst, Int32 gridrow, Int32 gridcol, Int32 index, Int32 len, Boolean iscomplex, Boolean vertical) | Copy DataGrid cells to Vector. |
Overload 1: TMtx GridToValues(DataGridView grid, TMtx dst, Boolean iscomplex, Boolean headers)
Copy DataGrid cells to Matrix.
| # | Name | Description |
|---|---|---|
| 1 | grid | Source DataGrid |
| 2 | dst | Destination Matrix |
| 3 | iscomplex | Treat cell values as complex numbers. |
| 4 | headers | DataGrid has row and column headers. |
Result: stored in self (calling object), returns self for chaining
Returns: Matrix with values from grid.
Overload 2: TMtx GridToValues(DataGridView grid, TMtx dst, Int32 gridrow, Int32 gridcol, Int32 Row, Int32 Col, Int32 RowCount, Int32 ColCount, Boolean iscomplex)
Copy grid subarray to matrix.
| # | Name | Description |
|---|---|---|
| 1 | grid | Source grid. |
| 2 | dst | Destination matrix. |
| 3 | gridrow | Subarray starting row index. |
| 4 | gridcol | Subarray starting column index. |
| 5 | Row | Destination matrix starting row index. |
| 6 | Col | Destination matrix starting column index. |
| 7 | RowCount | Number of rows to copy from grid. |
| 8 | ColCount | Number of columns to copy from grid. |
| 9 | iscomplex | If true, two consecutive columns in grid will be treated as single complex number. If false, cells will be treated as real separate values. |
Result: stored in self (calling object), returns self for chaining
Returns: Destination matrix with values from grid.
Remarks:
Copies datagrid elements, starting with [gridrow,gridcol] and ending with
[gridrow + RowCount,gridcol + ColCount] to destination matrix submatrix, starting at [Row,Col] and ending with [Row+RowCount,Col+ColCount].
Overload 3: TVec GridToValues(DataGridView grid, TVec dst, Boolean iscomplex, Boolean vertical, Boolean headers)
Copies DataGrid elements to vector.
| # | Name | Description |
|---|---|---|
| 1 | grid | Source DataGrid |
| 2 | dst | Destination vector holding values. |
| 3 | iscomplex | If true, two consecutive columns in grid will be treated as single complex number. If false, cells will be treated as real separate values. |
| 4 | vertical | If true, each column will be treated as separate number. |
| 5 | headers | If false, he acquisition starts at first cell [0,0]. If true, the first column and first row are ignored and submatrix starts at [1,1]. |
Result: stored in self (calling object), returns self for chaining
Returns: Vector with values from grid.
See Also: GridServices.ValuesToGrid
Overload 4: TVec GridToValues(DataGridView grid, TVec dst, Int32 gridrow, Int32 gridcol, Int32 index, Int32 len, Boolean iscomplex, Boolean vertical)
Copy DataGrid cells to Vector.
| # | Name | Description |
|---|---|---|
| 1 | grid | Source DataGrid. |
| 2 | dst | Destination Vector. |
| 3 | gridrow | DataGrid start row index. |
| 4 | gridcol | DataGrid start column index. |
| 5 | index | Vector start index. |
| 6 | len | Vector subarray length. |
| 7 | iscomplex | Treat cell values as complex numbers. |
| 8 | vertical | If true, vector is represented as single DataGrid column. If false, vector is represented as single DataGrid row. |
Result: stored in self (calling object), returns self for chaining