ES3Spreadsheet Class

Represents the cells of a spreadsheet, which can then be written to a CSV file using the ES3Spreadsheet.Save method.

[table th=”0″]ES3Spreadsheet Constructor,”Creates an empty ES3Spreadsheet.”[/table]
[table th=”0″]ES3Spreadsheet.RowCount,”Gets the number of rows in the spreadsheet.”

ES3Spreadsheet.ColumnCount,”Gets the number of columns in the spreadsheet.”[/table]

[table th=”0″]ES3Spreadsheet.SetCell,”Sets the value of a given cell.”

ES3Spreadsheet.GetCell,”Gets the value at a given cell.”

ES3Spreadsheet.Save,”Saves the ES3Spreadsheet as a CSV file.”

ES3Spreadsheet.Load,”Loads a CSV file into an ES3Spreadsheet.”

ES3Spreadsheet.GetColumnLength,”Gets the height of a column.”

ES3Spreadsheet.GetRowLength,”Gets the width of a row.”[/table]

Examples

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();

// Save some values into the spreadsheet.
sheet.SetCell(0,0, "hitpoints");
sheet.SetCell(1,0, 12);
sheet.SetCell(0,1, "position");
sheet.SetCell(1,0, transform.position);

// Save the file to a CSV.
sheet.Save("myData.csv");