ES3Spreadsheet.GetColumnLength

public int GetColumnLength(int col)

Description

Gets the height of a column, or returns zero if no values have been set in the column.

The height is the highest row with a value in that column, plus 1. It is not the number of values which have been set in that column.

Parameters

[table th=”0″]Col,”The column we want to get the height of”

[/table]

Returns

The length of the column, or zero if no items have been set in that column 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 column.
int columnLength = sheet.GetColumnLength(2);