Fri May 26, 2017 4:58 pm
Hi,
Below is the code I am using for creating bullet-ed paragraph but I am unable indent the paragraph from second line onwards.I have also attached the images for expected output.
RectangleF qdt_reportContent = new RectangleF(370, 150, presentation.SlideSize.Size.Width / 2 - 50, 130);
IAutoShape shape_qdtContent = presentation.Slides[report_count - 1].Shapes.AppendShape(ShapeType.Rectangle, qdt_reportContent);
shape_qdtContent.Line.FillType = FillFormatType.None;
string[] str = new string[] { "Divergence between non-US and US", "Large currency impact.: XXXX XXXX Index returned +X.0X% in local currency terms but -X.XX% in US dollar terms.", "This marked the fourth consecutive year of loss for the trade weighted US dollar index.", "Emerging Markets were down X.XX% presumably reflecting negative sentiment for outsourcing and potential for deteriorating trading relationships." };
foreach (string txt in str)
{
TextParagraph textParagraph = new TextParagraph();
textParagraph.Text = txt;
textParagraph.Alignment = TextAlignmentType.Left;
textParagraph.LeftMargin = 5;
textParagraph.TextRanges[0].Fill.FillType = FillFormatType.Solid;
textParagraph.TextRanges[0].FontHeight = 12;
textParagraph.TextRanges[0].LatinFont = new TextFont("Calibri Light");
//set the Bullets
textParagraph.BulletType = TextBulletType.Symbol;
textParagraph.BulletStyle = NumberedBulletStyle.BulletSimpChinPeriod;
shape_qdtContent.TextFrame.Paragraphs.Append(textParagraph);
shape_qdtContent.Fill.FillType = FillFormatType.None;
textParagraph.Indent = 15f;
}
Login to view the files attached to this post.