Page tree

Versions Compared

Key

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

...

Signature
C#
C#
public interface IFunction
{
    ComputationResultFunctionValue CustomFunction(IList<ComputationResult>IList<FunctionValue> args, Cell currentCell);
}
Signature
vb.net
vb.net
Public Interface IFunction
    Function CustomFunction(IList<ComputationResult>IList<FunctionValue> args, Cell currentCell) As ComputationResultFunctionValue
End Interface
Example
Code Block
csharp
csharp
titleC#
class Concat : IFunction
{
    public ComputationResultFunctionValue CustomFunction(IList<ComputationResult>IList<FunctionValue> args, Cell currentCell)
    {
        StringBuilder result = new StringBuilder("");


        foreach (ComputationResultFunctionValue arg in args)
            if (arg.Type != ComputationResultTypeFunctionValueType.RANGE)
                result.Append(arg);


        return new ComputationResultFunctionValue(result.ToString());
    }
}
Code Block
vbnet
vbnet
titlevb.net
Class Concat
	Implements IFunction
	Public Function CustomFunction(args As IList(Of ComputationResultFunctionValue), currentCell As Cell) As ComputationResultFunctionValue
		Dim result As New StringBuilder("")
		For Each arg As ComputationResultFunctionValue In args
			If arg.Type <> ComputationResultTypeFunctionValueType.RANGE Then
				result.Append(arg)
			End If
		Next
		Return New ComputationResultFunctionValue(result.ToString())
	End Function
End Class

...

Name

Description

CustomFunction(IList<ComputationResult>IList<FunctionValue>,Cell)

Excerpt Include
IFunction.CustomFunction
IFunction.CustomFunction
nopaneltrue

...