Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.
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!
Login 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
-
Betsy.jiang
-
- Posts: 3099
- 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
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am