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

Free Support Forum - aspose.com

Paragraphex and 'hasbullet' is 'readonly'

I’m trying to enable bullets in a ‘paragraphex’ object, but the ‘HasBullet’ property is ‘readonly’. The documentation on the site specifies that the property should be read/write, and I can confirm that it works with a ‘paragraph’ object

This message was posted using Aspose.Live 2 Forum

Dear Clayton,

Please use the code snippet mentioned below to add the bullets in PPTX paragraph. Actually, you may please need to enable the bullet type before adding the bullets. The HasBullet property only return the status whether the bullets are enabled or not.

PresentationEx pres = new PresentationEx();

SlideEx slide = pres.Slides[0];

int iShpId = slide.Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 200, 200, 200, 200);
AutoShapeEx aShp = slide.Shapes[iShpId] as AutoShapeEx;
TextFrameEx txtFrm = aShp.TextFrame;

//Getting the first paragraph of the text frame
ParagraphEx para = txtFrm.Paragraphs[0];

//Enabling symbolic paragraph bullet

para.BulletType = BulletTypeEx.Symbol;
para.Text = "Welcome to Aspose.Slides";

//True means, it has bullets
bool bCheck=para.HasBullet ;

//Setting the bullets color
para.BulletHeight = 125;

//Setting the bullet character using the ASCII code of a symbol
para.BulletChar = Convert.ToChar(">");

//Writing the presentation as a PPT file

Thanks and Regards,


Thank you! That did the trick. With PPT I was able to set the 'hasBullet' to true in order to enable bullets, and there was no documentation about how to do the same with PPTX.

Your method works perfectly, thank you for the quick reply!