PowerTools SPREAD for ASP.NET 8.0J
BooleanValue プロパティ

ブール値をブール値として取得します。
構文
'Declaration
 
Public ReadOnly Property BooleanValue As Boolean
public bool BooleanValue {get;}

プロパティ値

ブール値を含むBooleanオブジェクト
次のサンプルコードは、ブール式を作成します。
FarPoint.CalcEngine.BooleanExpression arg1 = new FarPoint.CalcEngine.BooleanExpression(true);
//Spread for Windows Forms
((FarPoint.Win.Spread.Model.IExpressionSupport)fpSpread1.ActiveSheet.Models.Data).SetExpression(0, 0, arg1);
bool b = arg1.BooleanValue;
MessageBox.Show(b);
//Spread for Web Forms
((FarPoint.Web.Spread.Model.IExpressionSupport)FpSpread1.Sheets[0].DataModel).SetExpression(0, 0, arg1);
bool b = arg1.BooleanValue;
TextBox1.Text = b.ToString();
Dim arg1 As New FarPoint.CalcEngine.BooleanExpression(True)
'Spread for Windows Forms
CType(FpSpread1.ActiveSheet.Models.Data, FarPoint.Win.Spread.Model.IExpressionSupport).SetExpression(0, 0, arg1)
Dim b As Boolean = arg1.BooleanValue
MsgBox(b)
'Spread for Web Forms
CType(FpSpread1.Sheets(0).DataModel, FarPoint.Web.Spread.Model.IExpressionSupport).SetExpression(0, 0, arg1)
Dim b As Boolean = arg1.BooleanValue
TextBox1.Text = b
参照

BooleanExpression クラス
BooleanExpression メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.