GrapeCity SPREAD for Windows Forms 11.0J
TwoColorScaleConditionalFormattingRule コンストラクタ(ConditionalFormattingColorValue,ConditionalFormattingColorValue)


最小値。注意: 最小値は、そのTypeプロパティがMin、Number、Percent、Formula、PecentileのいずれかであるConditionalFormattingColorValueオブジェクトのみを受け入れます。
最大値。注意: 最大値は、そのTypeプロパティがMax、Number、Percent、Formula、PecentileのいずれかであるConditionalFormattingColorValueオブジェクトのみを受け入れます。
TwoColorScaleConditionalFormattingRule クラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New( _
   ByVal minValue As ConditionalFormattingColorValue, _
   ByVal maxValue As ConditionalFormattingColorValue _
)
'使用法
 
Dim minValue As ConditionalFormattingColorValue
Dim maxValue As ConditionalFormattingColorValue
 
Dim instance As New TwoColorScaleConditionalFormattingRule(minValue, maxValue)
public TwoColorScaleConditionalFormattingRule( 
   ConditionalFormattingColorValue minValue,
   ConditionalFormattingColorValue maxValue
)

パラメータ

minValue
最小値。注意: 最小値は、そのTypeプロパティがMin、Number、Percent、Formula、PecentileのいずれかであるConditionalFormattingColorValueオブジェクトのみを受け入れます。
maxValue
最大値。注意: 最大値は、そのTypeプロパティがMax、Number、Percent、Formula、PecentileのいずれかであるConditionalFormattingColorValueオブジェクトのみを受け入れます。
次のサンプルコードは、2色カラースケールルールを作成します。
fpSpread1.Sheets[0].Cells[0, 0].Value = 3;
fpSpread1.Sheets[0].Cells[1, 0].Value = 2;
fpSpread1.Sheets[0].Cells[1, 1].Value = 10;
fpSpread1.Sheets[0].Cells[0, 1].Value = 1;   
FarPoint.Win.Spread.TwoColorScaleConditionalFormattingRule two = new FarPoint.Win.Spread.TwoColorScaleConditionalFormattingRule(new FarPoint.Win.Spread.ConditionalFormattingColorValue(System.Drawing.Color.Yellow, 1, FarPoint.Win.Spread.ConditionalFormattingValueType.Min), new FarPoint.Win.Spread.ConditionalFormattingColorValue(System.Drawing.Color.Orange, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Max));
fpSpread1.Sheets[0].SetConditionalFormatting(0, 0, 2, 2, two);
FpSpread1.Sheets(0).Cells(0, 0).Value = 3
FpSpread1.Sheets(0).Cells(1, 0).Value = 2
FpSpread1.Sheets(0).Cells(1, 1).Value = 10
FpSpread1.Sheets(0).Cells(0, 1).Value = 1
Dim two As New FarPoint.Win.Spread.TwoColorScaleConditionalFormattingRule(New FarPoint.Win.Spread.ConditionalFormattingColorValue(System.Drawing.Color.Yellow, 1, FarPoint.Win.Spread.ConditionalFormattingValueType.Min), New FarPoint.Win.Spread.ConditionalFormattingColorValue(System.Drawing.Color.Orange, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Max))
FpSpread1.Sheets(0).SetConditionalFormatting(0, 0, 2, 2, two)
参照

TwoColorScaleConditionalFormattingRule クラス
TwoColorScaleConditionalFormattingRule メンバ
オーバーロード一覧

 

 


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