How to read shape or Cells background color using Aspose.Slides.dll

Hi,

I am using Aspose.Slides.dll version 7.8.1.0 for .NET. I wish to update with latest version, but the latest Aspose.Slides.dll for net version 14.3.0.0 is not supporting the background color and forecolor properties which is available in Aspose.Slides.dll version 7.8.1.0 for .NET.

Please let me know the below code replacement using Aspose.Slides.dll for net version 14.3.0.0.

1. cell.FillFormat.ForeColor

2. cell.FillFormat.BackColor

3. shape.FillFormat.BackColor

4. shape.FillFormat.ForeColor

Thanks,

Dhivya

Hi Dhivya,


I have observed the requirements shared and like to share that in new API we have following properties that you can use on your end. I like to share that there are no ForeColor or BackColor for PPT in new API.

cell.FillFormat.FillType=FillType.Solid;
cell.FillFormat.SolidFillColor.ColorFormat.Color=Color.Red;

shape.FillFormat.FillType=FillType.Solid;
shape.FillFormat.SolidFillColor.ColorFormat.Color=Color.Red;

Please share, if I may help you further in this regard.

Many Thanks,

Hi,

Also please provide me the sample code for portion.FontColor.

Thanks,

Dhivya

Hi Dhivya,


I have observed the requirements shared and suggest you to please visit this documentation link for your kind reference. Please share, if I may help you further in this regard.

Many Thanks,