Indenting a bullet

Hi,

I am using a bullet point in a paragraph. I have a main bullet point and I have a sub-bullet to the main bullet. Please let me know a way to indent the sub bullet so that it stands out. Right now I am able to add bullets but both the main and sub bullet are in the same line.

Thanks,

Hitesh Soneji

Dear Hitesh,

You will have to make use of two properties of Pargraph namely Paragraph.BulletOffset and Paragraph.TextOffset

Below is the C# code example, output presentation generated by this code is attached.

void IndentationBulletAlignment()
{
    Presentation srcPres = new Presentation();
    Slide sld = srcPres.GetSlideByPosition(1);

    Aspose.Slides.Rectangle rect = sld.Shapes.AddRectangle(500, 500, 3000, 1);
    rect.LineFormat.ShowLines = false;
    TextFrame tf = rect.AddTextFrame("This is text");
    tf.FitShapeToText = true;

    Paragraph para = tf.Paragraphs[0];
    para.HasBullet = 1;
    para.BulletOffset = 0;
    para.TextOffset = 150;

    Paragraph subPara = new Paragraph(tf.Paragraphs[0]);
    tf.Paragraphs.Add(subPara);
    subPara.Text = "This is subtext";
    subPara.BulletOffset = 150;
    subPara.TextOffset = 300;

    srcPres.Write(@"c:\outBA.ppt");
}