Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • To get a property value, simply call it as a method.  Alternately (to match settor syntax), you can prefix the property name with _get_

To set a property value,  prefix the property name with _set or _ or put_.  The last argument passed to the method is the value.

Code Block
//Gettors, all equivalent.
println worksheet.Cells.Item[row+1,1]
println worksheet.Cells.Item(row+1,1)
println worksheet.Cells.get_ItemgetItem(row+1,1)

//Settors, all equivalent.
worksheet.Cells.Item[row+1,1] = new Date()
worksheet.Cells.set_ItemsetItem(row+1,1, new Date())
worksheet.Cells.put_ItemputItem(row+1,1, new Date())

The method syntax is actually a little faster than the bracketed property syntax, but we recommend that you use the syntax that makes your intentions most evident.