We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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)


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


Useful articles: Manage Text
API Reference: ITextFrameFormat interface

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


Thank you for using Aspose.Slides.