Spread Windows Forms 6.0 Product Documentation
BooleanValue Property
See Also  Example Support Options
FarPoint.CalcEngine Assembly > FarPoint.CalcEngine Namespace > BooleanExpression Class : BooleanValue Property


Glossary Item Box

Gets the boolean value as a boolean.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property BooleanValue As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BooleanExpression
Dim value As Boolean
 
value = instance.BooleanValue
C# 
public bool BooleanValue {get;}

Property Value

Boolean object containing the boolean value

Example

This example creates a boolean expression.
C#Copy Code
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();
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.