Spread ASP.NET 6.0 Product Documentation
BooleanExpression Constructor
See Also  Example Send Feedback
FarPoint.CalcEngine Assembly > FarPoint.CalcEngine Namespace > BooleanExpression Class : BooleanExpression Constructor


value
Boolean value

Glossary Item Box

Creates a new expression with a boolean constant value.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal value As Boolean _
)
Visual Basic (Usage)Copy Code
Dim value As Boolean
 
Dim instance As New BooleanExpression(value)
C# 
public BooleanExpression( 
   bool value
)

Parameters

value
Boolean value

Example

This example creates a boolean expression.
C#Copy Code
//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);
Visual BasicCopy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.