Is there any way to set the layout direction of a presentation in Aspose.Slides? I can set the directionality of individual paragraphs, but I can’t seem to change the general presentation directionality like I can do in PowerPoint VBA code using the Presentation.LayoutDirection property.
Hi Daniel,
I have tried to observe the requirement shared by you and have not been able to completely understand it. Can you please share the requirement in the form of sample presentation that what actually you mean by LayoutDirection. I will investigate the issue further on my end to help you out.
Many Thanks,
You can see it for yourself by following these steps:
- Open PowerPoint
- Create a new blank presentation, and add a couple of blank slides.
- Press Alt+F11 to bring up the VBA window.
- In the Immediate window, enter:
ActivePresentation.LayoutDirection = ppDirectionRightToLeft
and press Enter.
You should see that the scrollbar switches from the right of the PowerPoint window to the left, and the list of slide thumbnails goes from the left to the right. This is normal layout when editing RTL presentations in Hebrew, Arabic, Farsi, etc.
This is something that is saved in the presentation itself, so if you support setting the text directionality in paragraphs of text (via the ParagraphFormat.RightToLeft property), you should support this too.
Hi Daniel,