MESCIUS SPREAD for ASP.NET 10.0J
SecondFormula プロパティ

2番目の数式を取得または設定します。
構文
'Declaration
 
Public Property SecondFormula As String
public string SecondFormula {get; set;}

プロパティ値

2番目の数式。
次のサンプルコードは、数式を使用して値を指定します。
protected void Page_Load(object sender, EventArgs e)
{
    if (this.IsPostBack) return;
    FpSpread1.Sheets[0].Cells[0, 0].Value = 3;
    FpSpread1.Sheets[0].Cells[0, 1].Value = 2;
    FpSpread1.Sheets[0].Cells[0, 2].Value = 1;
    FpSpread1.Sheets[0].Cells[0, 3].Value = 1;
    FpSpread1.Sheets[0].Cells[1, 0].Value = 2;
    FpSpread1.Sheets[0].Cells[1, 1].Value = 6;

    FarPoint.Web.Spread.BetweenValuesConditionalFormattingRule between = new FarPoint.Web.Spread.BetweenValuesConditionalFormattingRule(false, "=B1+B2", true, "=C1+D1", true);
    between.BackColor = System.Drawing.Color.Bisque;
    between.FirstFormula = "=B1+B2";
    between.SecondFormula = "=C1+D1";
    between.StopIfTrue = false;
    FpSpread1.ActiveSheetView.SetConditionalFormatting(1, 1, between);
}
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, Me.Load
    If IsPostBack Then
     Return
    End If
    
    FpSpread1.Sheets(0).Cells(0, 0).Value = 3
    FpSpread1.Sheets(0).Cells(0, 1).Value = 2
    FpSpread1.Sheets(0).Cells(0, 2).Value = 1
    FpSpread1.Sheets(0).Cells(0, 3).Value = 1
    FpSpread1.Sheets(0).Cells(1, 0).Value = 2
    FpSpread1.Sheets(0).Cells(1, 1).Value = 6

    Dim between as New FarPoint.Web.Spread.BetweenValuesConditionalFormattingRule(false, "=B1+B2", true, "=C1+D1", true)
    between.BackColor = System.Drawing.Color.Bisque
    between.FirstFormula = "=B1+B2"
    between.SecondFormula = "=C1+D1"
    between.StopIfTrue = false
    FpSpread1.ActiveSheetView.SetConditionalFormatting(1, 1, between)
End Sub
参照

BetweenValuesConditionalFormattingRule クラス
BetweenValuesConditionalFormattingRule メンバ

 

 


© MESCIUS inc. All rights reserved.