ES3Spreadsheet.GetRowLength

public int GetRowLength(int row)

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

[table th=”0″]row,”The row we want to get the width of”

[/table]

Returns

The length of the row, or zero if no items have been set in that row or it’s out of bounds.

Examples

// 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);