Page tree

Versions Compared

Key

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

...

Example
Code Block
csharp
csharp
titleC#
//public CreateFunctionValue a FunctionValue for a string
FunctionValue CustomFunction(IList<FunctionValue> args, Cell currentCell)
{
    StringBuilder result = new FunctionValueStringBuilder("Hello");
 
 
    foreach (FunctionValue arg in args)
        if (arg.Type != FunctionValueType.RANGE)
        {
            // Access the Value property and append it to the result
            result.Append(arg.Value);
        }
 
 
    return new FunctionValue(result.ToString());
}
Code Block
vbnet
vbnet
titlevb.net
' Create a FunctionValue for a string
Dim result as New FunctionValue("Hello")

...