ES3Spreadsheet.GetRowLength
Description
Gets the width of a row, or returns zero if no values have been set in the row or it’s out of bounds.
The length is the highest column with a value in that row, plus 1. It is not the number of values which have been set in that row.
Parameters
row | The row we want to get the width of |
Returns
The length of the row, or zero if no items have been set in that row or it’s out of bounds.
Examples
1 2 3 4 5 6 |
// Create a blank ES3Spreadsheet and load our CSV into it. var sheet = new ES3Spreadsheet(); sheet.Load("myData.csv"); // Get the length of the third row. int rowLength = sheet.GetRowLength(2); |