GrapeCity.Windows.SpreadGrid 名前空間 > GcSpreadGrid クラス : EvaluateFunction メソッド |
'Declaration
Public Function EvaluateFunction( _ ByVal function As Object, _ ByVal ParamArray parameters() As Object _ ) As Object
public object EvaluateFunction( object function, params object[] parameters )
public void Formula2() { GcSpreadGrid gcSpread1 = new GcSpreadGrid(); object result = gcSpread1.EvaluateFunction(CalcBinaryOperators.Divide, new object[]{4, 2}); // The value of result is 2. }
Public Sub Formula2() Dim gcSpread1 As New GcSpreadGrid() Dim result As Object = gcSpread1.EvaluateFunction(CalcBinaryOperators.Divide, New Object() {4, 2}) ' The value of result is 2. End Sub