PowerTools SPREAD for Windows Forms 10.0J
Arg0 プロパティ


式の左側のオペランドを取得します。
構文
'Declaration
 
Public ReadOnly Property Arg0 As Expression
'使用法
 
Dim instance As BinaryOperatorExpression
Dim value As Expression
 
value = instance.Arg0
public Expression Arg0 {get;}

プロパティ値

1つ目の引数の式を含むExpressionオブジェクト
次のサンプルコードは、オペランドのペアに適用される二項演算子を使用して新しい式を作成します。
FarPoint.CalcEngine.Expression arg1 = new FarPoint.CalcEngine.DoubleExpression(1.0);
FarPoint.CalcEngine.Expression arg2 = new FarPoint.CalcEngine.DoubleExpression(2.0);
FarPoint.CalcEngine.Expression oneplustwo = new FarPoint.CalcEngine.BinaryOperatorExpression(FarPoint.CalcEngine.BinaryOperatorInfo.AddOperator,arg1, arg2);
//Spread for Windows Forms
((FarPoint.Win.Spread.Model.IExpressionSupport)fpSpread1.ActiveSheet.Models.Data).SetExpression(0, 0, oneplustwo);
//Spread for Web Forms
((FarPoint.Web.Spread.Model.IExpressionSupport)FpSpread1.Sheets[0].DataModel).SetExpression(0, 0, oneplustwo);
Dim arg1 As FarPoint.CalcEngine.Expression
Dim arg2 As FarPoint.CalcEngine.Expression
Dim oneplustwo As FarPoint.CalcEngine.Expression
arg1 = New FarPoint.CalcEngine.DoubleExpression(1.0)
arg2 = New FarPoint.CalcEngine.DoubleExpression(2.0)
oneplustwo = New FarPoint.CalcEngine.BinaryOperatorExpression(FarPoint.CalcEngine.BinaryOperatorInfo.AddOperator, arg1, arg2)
'Spread for Windows Forms
CType(FpSpread1.ActiveSheet.Models.Data, FarPoint.Win.Spread.Model.IExpressionSupport).SetExpression(0, 0, oneplustwo)
'Spread for Web Forms
CType(FpSpread1.Sheets(0).DataModel, FarPoint.Web.Spread.Model.IExpressionSupport).SetExpression(0, 0, oneplustwo)
参照

BinaryOperatorExpression クラス
BinaryOperatorExpression メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.