Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents from any .NET(C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Mon Sep 23, 2019 4:59 pm

Is there a way to vertically align text in a TextBox, or within a Shape (e.g. rectangle), as shown in the attachment?
Thanks!
You do not have the required permissions to view the files attached to this post.

iceblue23
 
Posts: 2
Joined: Sat Sep 07, 2019 8:47 pm

Tue Sep 24, 2019 1:53 am

Hi,

Thanks for your inquiry.
Please refer to following code:
Code: Select all
            IAutoShape shape = ppt.Slides[0].Shapes[0] as IAutoShape;
            shape.TextFrame.AnchoringType = TextAnchorType.Top;


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3067
Joined: Tue Sep 06, 2016 8:30 am

Tue Oct 29, 2019 6:06 am

Hi,

Greetings from E-iceblue.
Is the code I provided helpful for you? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3067
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation