Property csvTable.this(+ 3 overloads)
Overload
Gets or sets a field.
public string this[int row, int column] { get; set; }
Parameters
row (int)
0-based row index. The |
column (int)
0-based column index. With the |
Exceptions
Property Value
Examples
var c = new csvTable { ColumnCount = 2 };
c[0, 0] = "A1";
c[0, 1] = "A2";
c[1, 0] = "B1";
c[1, 1] = "B2";
print.it(c);
string s = c[0, 0];
print.it(s);
Overload(next)
Gets or sets a field.
public string this[Index row, int column] { get; set; }
Parameters
row (Index)
0-based row index. Can be from the end; for example |
column (int)
0-based column index. With the |
Exceptions
Property Value
Overload(next)
Gets or sets fields in a row.
public string[] this[int row] { get; set; }
Parameters
row (int)
0-based row index. The |
Exceptions
Property Value
string[] |
Remarks
The get
function gets the row array. It's not a copy; changing its elements will change content of this csvTable variable.
The set
function sets the row array. Does not copy the array, unless its Length is less than csvTable.ColumnCount.
Examples
var c = new csvTable();
c[-1] = ["A", "B"];
c[-1] = ["C", "D"];
print.it(c);
for (int row = 0; row < c.RowCount; row++) {
print.it(c[row, 0], c[row, 1]);
}
Overload(top)
Gets or sets fields in a row.
public string[] this[Index row] { get; set; }
Parameters
row (Index)
0-based row index. Can be from the end; for example |
Exceptions
Property Value
string[] |
Remarks
The get
function gets the row array. It's not a copy; changing its elements will change content of this csvTable variable.
The set
function sets the row array. Does not copy the array, unless its Length is less than csvTable.ColumnCount.