PowerTools SPREAD for Windows Forms 10.0J
MaxValue プロパティ (ThreeColorScaleConditionalFormattingRule)


最大値を取得または設定します。注意: 最大値は、そのTypeプロパティがMax、Number、Percent、Formula、PecentileのいずれかであるConditionalFormattingColorValueオブジェクトのみを受け入れます。
構文
'Declaration
 
Public Overrides Property MaxValue As ConditionalFormattingColorValue
'使用法
 
Dim instance As ThreeColorScaleConditionalFormattingRule
Dim value As ConditionalFormattingColorValue
 
instance.MaxValue = value
 
value = instance.MaxValue
public override ConditionalFormattingColorValue MaxValue {get; set;}
次のサンプルコードは、3色カラースケールルールを作成します。
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, 2].Value = 1;
FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule three = new FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule();
three.MidValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Aqua, 5, FarPoint.Win.Spread.ConditionalFormattingValueType.Number);
three.MinValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.BlueViolet, 1, FarPoint.Win.Spread.ConditionalFormattingValueType.Number);
three.MaxValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Purple, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Number);
fpSpread1.Sheets[0].SetConditionalFormatting(0, 0, 3, 3,three);
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, 2).Value = 1
Dim three As New FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule()
three.MidValue = New FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Aqua, 5, FarPoint.Win.Spread.ConditionalFormattingValueType.Number)
three.MinValue = New FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.BlueViolet, 1, FarPoint.Win.Spread.ConditionalFormattingValueType.Number)
three.MaxValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Purple, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Number)
FpSpread1.Sheets(0).SetConditionalFormatting(0, 0, 3, 3,three)
参照

ThreeColorScaleConditionalFormattingRule クラス
ThreeColorScaleConditionalFormattingRule メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.