class Concat : IFunction
{
public ComputationResult CustomFunction(IList<ComputationResult> args, Cell currentCell)
{
StringBuilder result = new StringBuilder("");
foreach (ComputationResult arg in args)
if (arg.Type != ComputationResultType.RANGE)
result.Append(arg);
return new ComputationResult(result.ToString());
}
}
Code Block
vbnet
vbnet
title
vb.net
Class Concat
Implements IFunction
Public Function CustomFunction(args As IList(Of ComputationResult), currentCell As Cell) As ComputationResult
Dim result As New StringBuilder("")
For Each arg As ComputationResult In args
If arg.Type <> ComputationResultType.RANGE Then
result.Append(arg)
End If
Next
Return New ComputationResult(result.ToString())
End Function
End Class