How to Set Margins in Text Box of Shape in PowerPoint Presentation Using Java?

Hi all,
I’m using aspose-slides-21.10.jar. I would like to set margins in text box of shape to 0. See attached screenshot, please.
Unfortunately, I didn’t find any way how to do it.
Can you help, please?

Desc.png (27.2 KB)

BR
Radek

@rdocekal,
You can set margins for a shape’s text box like this:

autoShape.getTextFrame().getTextFrameFormat().setMarginLeft(0);

Useful articles: Manage Text
API Reference: ITextFrameFormat interface

Hi Andrey,
thanks a lot! It works well.
No more question.

BR
Radek

@rdocekal,
Thank you for using Aspose.Slides.