We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bullet Points and Text Indentation

Hi there,
following problem: We are creating an unordered list inside a table cell.

var cell = rows.ElementAt(0)[1];
cell.TextFrame.Paragraphs.Clear();
foreach (var item in bulletList)
{
       var par = new Paragraph();
       par.ParagraphFormat.Bullet.Type = BulletType.Symbol;
       par.Text = item.Text;
       par.ParagraphFormat.DefaultPortionFormat.FontHeight = ourBaseFontSize;
       par.ParagraphFormat.Indent = 10;
       cell.TextFrame.Paragraphs.Add(par);
}

It is working, but our customers noticed that if an enumeration item wraps to the next line, the text is not aligned like it is when you create the unordered list in Power Point yourself.

This is how it looks:
Screenshot 2021-12-17 122101.png (2.3 KB)

This is how it looks if you toggle the unordered list in PowerPoint:
Screenshot 2021-12-17 122212.png (2.4 KB)

Do you have any idea how this could be achieved?

@dlys,
Welcome to our community! Thank you for the issue description.

Unfortunately, I cannot use your code snippet that contains unknown variables. Please check your result using the latest version of Aspose.Slides.

If the issue persists, please share/specify the following:

  • input presentation file
  • comprehensive code example that reproduces the problem
  • output presentation file
  • OS version on which the problem appeared