GrapeCity.Win.MultiRow Namespace : Expression Class |
Public NotInheritable Class Expression Implements ICalculation
Dim instance As Expression
public sealed class Expression : ICalculation
This class calculates a value based on a string expression. This ExpressionString only resolves the "+","-","*","/","(",")" operators.
private SummaryCell CreateSubTotalSummaryCell() { // Calculates the subtotal based on 'Price' and 'Count' in the same row. SummaryCell summaryCell = new SummaryCell(); summaryCell.Name = "SubTotal"; summaryCell.Calculation = new Expression("Price * Count"); summaryCell.Style.Format = "C"; summaryCell.Style.BackColor = Color.Wheat; return summaryCell; }
Private Function CreateSubTotalSummaryCell() As SummaryCell ' Calculates the subtotal based on 'Price' and 'Count' in the same row. Dim summaryCell As New SummaryCell() summaryCell.Name = "SubTotal" summaryCell.Calculation = New Expression("Price * Count") summaryCell.Style.Format = "C" summaryCell.Style.BackColor = Color.Wheat Return summaryCell End Function
System.Object
GrapeCity.Win.MultiRow.Expression
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