Page tree

Versions Compared

Key

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

...

Signature
C#
C#
FunctionValue CustomFunctionCalculate(IList<FunctionValue> args, Cell currentCell)
Signature
vb.net
vb.net
Function CustomFunctionCalculate(IList<FunctionValue> args, Cell currentCellargs As IList(Of FunctionValue), currentCell As Cell) As FunctionValue

Parameters

...

Example
Code Block
csharp
csharp
titleC#
    public FunctionValue CustomFunctionCalculate(IList<FunctionValue> args, Cell currentCell)
    {
        StringBuilder result = new StringBuilder("");
 
 
        foreach (FunctionValue arg in args)
            if (arg.Type != FunctionValueType.RANGE)
                result.Append(arg);
 
 
        return new FunctionValue(result.ToString());
    }
Code Block
vb.net
vb.net
titlevb.net
    Public Function CustomFunctionCalculate(args As IList(Of FunctionValue), currentCell As Cell) As FunctionValue
        Dim result As New StringBuilder("")
        For Each arg As v In args
            If arg.Type <> FunctionValueType.RANGE Then
                result.Append(arg)
            End If
        Next
        Return New FunctionValue(result.ToString())
    End Function