Page tree

Versions Compared

Key

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

...

Example
Code Block
csharp
csharp
titleC#
public FunctionValue CustomFunction(IList<FunctionValue> args, Cell currentCell)
{
    StringBuilder result = new StringBuilder("");
 
      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
'Public CreateFunction a FunctionValue for a string
CustomFunction(args As IList(Of FunctionValue), currentCell As Cell) As FunctionValue
	Dim result asAs New FunctionValueStringBuilder("Hello")")

	For Each arg As FunctionValue In args
		If arg.Type <> FunctionValueType.RANGE Then
			' Access the Value property and append it to the result
			result.Append(arg.Value)
		End If
	Next

	Return New FunctionValue(result.ToString())
End Function

Properties

Name

Description

Value

Excerpt Include
FunctionValue.Value
FunctionValue.Value
nopaneltrue

Type

Excerpt Include
FunctionValue.Type
FunctionValue.Type
nopaneltrue

...