ES3Spreadsheet.ColumnCount
Description
Gets the number of columnsĀ in the ES3Spreadsheet.
Returns
The number of columnsĀ in the spreadsheet.
Examples
C#
1 2 3 4 5 6 |
// 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
1 2 3 4 5 6 |
// 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)); |