ES3Spreadsheet.ColumnCount

public int ColumnCount

Description

Gets the number of columnsĀ in the ES3Spreadsheet.

Returns

The number of columnsĀ in the spreadsheet.

Examples

C#

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();
sheet.Load("spreadsheet.csv");
// Output the first row of the spreadsheet to console.
for(int col=0; col<sheet.ColumnCount; col++)
    Debug.Log(sheet.GetCell<int>(col, 0));

JS

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();
sheet.Load("spreadsheet.csv");
// Output the first row of the spreadsheet to console.
for(var col=0; col<sheet.ColumnCount; col++)
    Debug.Log(sheet.GetCell.<int>(col, 0));