Alternate for GradientFill

            GradientFill gf = new GradientFill();<br>                gf.setGradientColorType(GradientColorType.TWO_COLORS);<br>                gf.getGradientStops().addStop(0, clr1, 0);<br>                gf.getGradientStops().addStop(1, clr2, 0);<br>                gf.setGradientType(GradientFillType.LINEAR);<br>                gf.setGradientFillAngle(90);<br><br>               Series series = chart.NSeries;<br>               series.getArea().setFill(gf);<br>               series.getBorder().setFill(gf);<br><br>The above code was written in aspose.java.<br>Please let me know if there is a alternate code in aspose.net<br>As I could not find any alternate approach..i am trying with the following code but of no use since the below property is read only and cannot be assigned anything:<br>                    <br>                      series.Area.FillFormat.GradientColorType = gf.GradientColorType;<br><br>Any help would really be appreciated.  Thanks in advance.<br><br>

Hi,

See the following .NET code for reference:
chart.NSeries[0].Area.FillFormat.SetTwoColorGradient(Color.Red, Color.Blue, GradientStyleType.FromCenter, 2);
chart.NSeries[0].Area.FillFormat.GradientFill.SetGradient(GradientFillType.Linear, 90, GradientDirectionType.FromCenter);
GradientStopCollection gsc = chart.NSeries[0].Area.FillFormat.GradientFill.GradientStops;
CellsColor clr1 = workbook.CreateCellsColor();
clr1.Color = Color.Red;
CellsColor clr2 = workbook.CreateCellsColor();
clr2.Color = Color.Blue;
gsc.Add(0, clr1, 0);
gsc.Add(1, clr2, 0);
chart.NSeries[0].Area.FillFormat.GradientFill.Angle = 90;


Thank you.