GrapeCity.Win.MultiRow.v80 アセンブリ > GrapeCity.Win.MultiRow 名前空間 : Expression クラス |
Public NotInheritable Class Expression Implements ICalculation
public sealed class Expression : ICalculation
このクラスを使用すると、式文字列に基づいて値を計算できます。ExpressionStringで解決される演算子は、"+"、"-"、"*"、"/"、"("、")"のみです。
private SummaryCell CreateSubTotalSummaryCell() { // Calculation the sub total base on 'Price' and 'Count' in 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 ' Calculation the sub total base on 'Price' and 'Count' in 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