In the upcoming 3.3. release, this code will parse the currentrow notaqtion properly.
engine.AddFunction("Test", new GridFormulaEngine.LibraryFunction(ComputeTest));
engine.ForceParsingOfLibraryFunctionArguments = true;
private string ComputeTest(string args)
{
return engine.GetValueFromArg(args);
}
With this code, if you enter "=Test(B0)" in a cell, the return value will be the value from column B in the same row. So, the CurrentRowNotation should work properly with function arguments if you have this flag set.
That said, I do not think it will help you if you really need to know the actual rowindex corresponding to the 0-index. One way you could get this value is to add a column with the values 1,2,3, etc. Then using =X0 (where X is the column) will return the row number.