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


Glossary Item Box

Gets the boolean value as an object.

Syntax

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

Property Value

Object containing the 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);
object b = arg1.Value;
MessageBox.Show(b);
//Spread for Web Forms
((FarPoint.Web.Spread.Model.IExpressionSupport)FpSpread1.Sheets[0].DataModel).SetExpression(0, 0, arg1);
object b = arg1.Value;
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 Object = arg1.Value
MsgBox(b)
'Spread for Web Forms
CType(FpSpread1.Sheets(0).DataModel, FarPoint.Web.Spread.Model.IExpressionSupport).SetExpression(0, 0, arg1)
Dim b As Object = arg1.Value
TextBox1.Text = b

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.