//Creating a paragraph Paragraph para = new Paragraph(); //Setting paragraph bullet style and symbol para.getParagraphFormat().getBullet().setType(BulletType.Symbol); para.getParagraphFormat().getBullet().setChar((char) 8226); //Setting paragraph text para.setText("Welcome to Aspose.Slides"); //Setting bullet indent para.getParagraphFormat().setIndent(25); //Setting bullet color para.getParagraphFormat().getBullet().getColor().setColorType(ColorType.RGB); para.getParagraphFormat().getBullet().getColor().setColor(Color.BLACK); // set IsBulletHardColor to true to use own bullet color para.getParagraphFormat().getBullet().isBulletHardColor(NullableBool.True); //Setting Bullet Height para.getParagraphFormat().getBullet().setHeight(100);
TextBox shape = new TextBox(); RichTextRun rt = shape.getTextRun().getRichTextRuns()[0]; shape.setText( "January\r" + "February\r" + "March\r" + "April"); rt.setFontSize(42); rt.setBullet(true); rt.setBulletOffset(0); //bullet offset rt.setTextOffset(50); //text offset (should be greater than bullet offset) rt.setBulletChar('\u263A'); //bullet character slide.addShape(shape); shape.setAnchor(new java.awt.Rectangle(50, 50, 500, 300)); //position of the text box in the slide slide.addShape(shape);