Working with numbered bullets in Aspose slides

Hi,

I am not able to understand how to work with numbered bullets.
I understand that using Paragraph.setNumberedBulletStartWith(short) will help set the number but what about the next bullet? Should it come in the same paragraph and different portion, or in the next paragraph? How does Aspose know if its the continuation of the last list?

Please refer the following code.

Presentation pres = new Presentation();
Slide slide = pres.getSlideByPosition(1);

Shape rect = slide.getShapes().addRectangle(2000,2000,1000,1000);
TextFrame tf3 = rect.addTextFrame("");

tf3.setWrapText(true);
Paragraph para = tf3.getParagraphs().get(0);
Portion port=para.getPortions().get(0);
port.setFontHeight((short)10);
para.setHasBullet((short) 1);
para.setNumberedBulletStartWith((short) 2);
para.setBulletColor(java.awt.Color.red);
para.setDepth((short) 0);
port.setText(“some text. some text. some text. some text. some text.”);

Paragraph para2 = new Paragraph();
tf3.getParagraphs().add(para2);
port = new Portion(" “);
para2.getPortions().add(port);
port.setFontHeight((short)10);
para2.setHasBullet((short) 1);
para2.setNumberedBulletStartWith((short) 3);
para2.setBulletColor(java.awt.Color.red);
para2.setDepth((short) 0);
port.setText(“some text. some text. some text. some text. some text.”);

File file = new File(“c:\modified.ppt”);
FileOutputStream fileOutputStream = new FileOutputStream(file);
pres.write(fileOutputStream);
fileOutputStream.close();


This gives me an output of a text frame with two lines. First on starting with a bullet, second on with number 1

Please help.
Thanks

<p:colorscheme colors=”#ffffff,#000000,#808080,#000000,#bbe0e3,#333399,#009999,#99cc00">

</p:colorscheme>



Hi,

I am currently implementing this functionality and have hit a road block. I have referred the programming guides but couldn’t find an answer to this.

Please reply as soon as possible, or direct me to the thread if this has been discussed before.

Thanks.

Please see this thread for example.

<A href="https://forum.aspose.com/t/101985</A> </P></FONT>