473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PowerPoint shape text alignment

Hi,

I use c# to automate powerpoint. I created a new shape with

PowerPoint.Shape shape =
slide.Shapes.AddTextbox(MsoTextOrientation.msoText OrientationHorizontal,
left, top, width, height);
shape.TextFrame.TextRange.Text = text;

Now I want the text to be right-aligned but I can't find a solution!

I tried to set the anfcor

shape.TextFrame.VerticalAnchor = MsoVerticalAnchor.msoAnchorMiddle;
shape.TextFrame.HorizontalAnchor = MsoHorizontalAnchor.msoAnchorCenter;

but this is not what I'm looking for.
Isn't it possible to set the alignment of a text in a text box or how
can I resolve this?

Thanks!

Aug 9 '06 #1
0 1945

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sahu | last post by:
HI! I have two expert questions: 1. Is it possible to add new (own) End Styles of arrows in the Format AutoShape window (Colors and Lines) drop down box? 2. How is it possible to access the...
1
by: Bret | last post by:
To provide a small team assistance in a rather massive data conversion effort, I've built an ASP script that scans/scrapes a pile of PowerPoint presentations that are in an agreed-upon format and...
6
by: C Williams | last post by:
Hi, I am writing some VB.NET code that compiles to a dll. There is some code within it that manipulates Powerpoint 2003. The dll I am writing is for smart tags, and I am having trouble...
1
by: Adeel | last post by:
Hello, This is Adeel! Well i'm a software developer here in Pakistan working on Microsoft C#. Can you u plz help me out i have a problem in creating an ARROW-CONNECTOR SHAPE using Microsoft...
0
by: akshar108 via DotNetMonster.com | last post by:
TextFrame (unknown member) : Invalid request. This type of shape cannot have a TextRange i got this error while i m fetching text from textframe which is in the slide my code is following can...
1
by: nushi | last post by:
Does any one know how i can get the shape name or text inside the shape when the user click on it and i active a macro? i need to know that on the macro itself... thenks :)
3
by: WPeterson | last post by:
Converting PowerPoint to Flash would absolutely be a good choice to distribute your bulky PowerPoint presentations. You can do the whole PowerPoint to Flash conversion manually or with...
2
by: LucasLondon | last post by:
Hi, I'm trying to use VBA to extract underlying data from charts in powerpoint to excel, i.e from the underlying powerpoint datasheet that feeds the chart. I've found the macro below on the...
1
by: chrizstone | last post by:
Hi Guys, What i want to do is: I want to create a Slide programmatically where a Table is on it! Here´s my Code: String strTemplate; strTemplate = template; String...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.