Hi,
I am getting incorrect x,y value for a paragraph in textFrame. The textFrame contains 6 paragraphs, among which last two dont have text. In remaining first 4 paragraphs, first two have X value of 34.2 while third has value of 7 which seems to be incorrect as all paragraph seems to start at same left pos in presentation file. The code used for getting para position is shown below.
//After getting the first textFrame of first shape in first slide
for (int i = 0; i < aTextFrame.Paragraphs.Count; i++)
{
IParagraph aParagraph = aTextFrame.Paragraphs[i];
myParagraph paragraph = new vctParagraph();
var rect = aParagraph.GetRect();
paragraph.left = rect.X;
paragraph.top = rect.Y;
paragraph.width = rect.Width;
paragraph.height = rect.Height;
paragraph.text = aParagraph.Text;
}
I have attached the sample pptx file for your referenceparagraph_issue.zip (75.1 KB)