Spread Windows Forms 9.0 Product Documentation
BooleanExpression Constructor
Example 


Boolean value
Creates a new expression with a boolean constant value.
Syntax
'Declaration
 
Public Function New( _
   ByVal value As Boolean _
)
'Usage
 
Dim value As Boolean
 
Dim instance As New BooleanExpression(value)
public BooleanExpression( 
   bool value
)

Parameters

value
Boolean value
Example
This example creates a boolean expression.
//Spread for Windows Forms
FarPoint.CalcEngine.Expression arg1 = new FarPoint.CalcEngine.BooleanExpression(true);
((FarPoint.Win.Spread.Model.IExpressionSupport)fpSpread1.ActiveSheet.Models.Data).SetExpression(0, 0, arg1);
//Spread for Web Forms
FarPoint.CalcEngine.Expression arg1 = new FarPoint.CalcEngine.BooleanExpression(true);
((FarPoint.Web.Spread.Model.IExpressionSupport)FpSpread1.Sheets[0].DataModel).SetExpression(0, 0, arg1);
Dim arg1 As FarPoint.CalcEngine.Expression
arg1 = New FarPoint.CalcEngine.BooleanExpression(True)
'Spread for Windows Forms
CType(FpSpread1.ActiveSheet.Models.Data, FarPoint.Win.Spread.Model.IExpressionSupport).SetExpression(0, 0, arg1)
'Spread for Web Forms
CType(FpSpread1.Sheets(0).DataModel, FarPoint.Web.Spread.Model.IExpressionSupport).SetExpression(0, 0, arg1)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

BooleanExpression Class
BooleanExpression Members

 

 


Copyright © GrapeCity, inc. All rights reserved.