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.TwoColorScaleConditionalFormattingRule two = new FarPoint.Win.Spread.TwoColorScaleConditionalFormattingRule();
two.MaxValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Red, 10, FarPoint.Win.Spread.ConditionalFormattingValueType.Max);
two.MinValue = new FarPoint.Win.Spread.ConditionalFormattingColorValue(Color.Yellow, 2, FarPoint.Win.Spread.ConditionalFormattingValueType.Min);
fpSpread1.ActiveSheet.SetConditionalFormatting(0, 0, 3, 3, two);