FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ThreeColorScaleConditionalFormattingRule Class > ThreeColorScaleConditionalFormattingRule Constructor : ThreeColorScaleConditionalFormattingRule Constructor(ConditionalFormattingColorValue,ConditionalFormattingColorValue,ConditionalFormattingColorValue) |
'Declaration Public Function New( _ ByVal minValue As ConditionalFormattingColorValue, _ ByVal midValue As ConditionalFormattingColorValue, _ ByVal maxValue As ConditionalFormattingColorValue _ )
'Usage Dim minValue As ConditionalFormattingColorValue Dim midValue As ConditionalFormattingColorValue Dim maxValue As ConditionalFormattingColorValue Dim instance As New ThreeColorScaleConditionalFormattingRule(minValue, midValue, maxValue)
public ThreeColorScaleConditionalFormattingRule( ConditionalFormattingColorValue minValue, ConditionalFormattingColorValue midValue, ConditionalFormattingColorValue maxValue )
fpSpread1.Sheets[0].Cells[0, 0].Value = 30; fpSpread1.Sheets[0].Cells[1, 0].Value = 20; fpSpread1.Sheets[0].Cells[1, 1].Value = 10; fpSpread1.Sheets[0].Cells[0, 2].Value = 15; FarPoint.Win.Spread.Model.CellRange celRange1 = new FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 3); FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule rule = new FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule(new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Aqua, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Number), new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.BlueViolet, 20, FarPoint.Win.Spread.ConditionalFormattingValueType.Number), new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Green, 50, FarPoint.Win.Spread.ConditionalFormattingValueType.Number)); fpSpread1.Sheets[0].SetConditionalFormatting(new FarPoint.Win.Spread.Model.CellRange[] { celRange1 }, rule);
FpSpread1.Sheets(0).Cells(0, 0).Value = 30 FpSpread1.Sheets(0).Cells(1, 0).Value = 20 FpSpread1.Sheets(0).Cells(1, 1).Value = 10 FpSpread1.Sheets(0).Cells(0, 2).Value = 15 Dim celRange1 As New FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 3) Dim Rule As New FarPoint.Win.Spread.ThreeColorScaleConditionalFormattingRule(New FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Aqua, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Number), New FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.BlueViolet, 20, FarPoint.Win.Spread.ConditionalFormattingValueType.Number), New FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Green, 50, FarPoint.Win.Spread.ConditionalFormattingValueType.Number)) FpSpread1.Sheets(0).SetConditionalFormatting(New FarPoint.Win.Spread.Model.CellRange() {celRange1}, Rule)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10