GrapeCity SPREAD for Windows Forms 11.0J
FirstFormula プロパティ


最初の数式を取得または設定します。
構文
'Declaration
 
Public Property FirstFormula As String
'使用法
 
Dim instance As BetweenValuesConditionalFormattingRule
Dim value As String
 
instance.FirstFormula = value
 
value = instance.FirstFormula
public string FirstFormula {get; set;}

プロパティ値

最初の数式。
次のサンプルコードは、数式を使用して値を指定します。
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.Win.Spread.BetweenValuesConditionalFormattingRule between = new FarPoint.Win.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.ActiveSheet.SetConditionalFormatting(1, 1, between);
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.Win.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.ActiveSheet.SetConditionalFormatting(1, 1, between)
参照

BetweenValuesConditionalFormattingRule クラス
BetweenValuesConditionalFormattingRule メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.