Free Support Forum - aspose.com

Java : Background Color for IPortion. Aspose.Slides v17

I am trying to create a paragraph, with two portions.
One portion should be italic and have yellow background. The other should have green color and bold background.

So far, I have been only able to set the text color of each Portion. But I am not able to set the background color for a Portion. Nor have I been able to find any document/material on the same.

IPortion p = new Portion(“hello”)
//set text color
p.getPortionFormat().getFillFormat().setFillType(FillType.Solid); p.getPortionFormat().getFillFormat().getSolidFillColor().setColor(convertTextColorToJavaAWT(e.textColor));

How to set background color?
Can you please advise or point me to proper documents.

@kaushikranjan,

I have observed your requirements and like to share that background color is set on complete text frame level and not on individual portion or paragraph level. If you are able to achieve this in PowerPoint, please share source presentation with desired effect. We will investigate this further on our end to help you out.