Spread Windows Forms 8.0 Product Documentation
Value Property (BooleanExpression)
Example 


Gets the boolean value as an object.
Syntax
'Declaration
 
Public ReadOnly Property Value As Object
'Usage
 
Dim instance As BooleanExpression
Dim value As Object
 
value = instance.Value
public object Value {get;}

Property Value

Object containing the value
Example
This example creates a boolean expression.
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();
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

BooleanExpression Class
BooleanExpression Members

 

 


Copyright © GrapeCity, inc. All rights reserved.