StyleGrid REALbasic Plugin |
|
StyleGridRow.Recreate Method
Use this method to create a new internal row object without creating external REALbasic object.
Recreate()
Parameters
Remarks
This can give up to 13% speed increase in some cases.
Example how this can be used to gain some additional speed:
Without Recreate:
for i = 1 to 15000
row = new StyleGridRow(StyleGrid1)
row.WritableCell(1).Text = "Test " + Str(i)
StyleGrid1.AppendRow(row)
next
With Recreate: // In this example we gain more speed because the REALbasic row object
// is created only once, and after that only a new internal object is constructed.
row = new StyleGridRow(StyleGrid1)
for i = 1 to 15000
row.WritableCell(1).Text = "Test " + Str(i)
StyleGrid1.AppendRow(row)
row.Recreate()
next
See Also
StyleGridRow Class