I have been setting bullets to paragraphs, and as far as I’ve seen you can add numbered bullets and custom character (symbol) bullets, but I don’t see any obvious way to insert the predefined Office bullets (Arrow Bullets, Checkmark Bullets, etc).
Does Aspose support this? I have tried different symbol charasters, but none of them gave me the bullets I usually see in Office.
I like to share that the you can add the bullets with different symbols and that involve check mark and arrow bullets. All you need is to use the proper unicode decimal code for the bullet. Please try using the following sample code to serve the purpose. You can surf unicode for any symbol you want and add that as bullet symbol.
public static void testBullet() { //Creating a presenation instance using (PresentationEx pres = new PresentationEx()) {
//Accessing the first slide SlideEx slide = pres.Slides[0];
//Adding and accessing Autoshape int iShpId = slide.Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 200, 200, 400, 200); AutoShapeEx aShp = slide.Shapes[iShpId] as AutoShapeEx;
//Accessing the text frame of created autoshape TextFrameEx txtFrm = aShp.TextFrame;
//Removing the default exisiting paragraph txtFrm.Paragraphs.RemoveAt(0);
//Creating a paragraph ParagraphEx para = new ParagraphEx();
//Setting paragraph bullet style and symbol para.ParagraphFormat.BulletType = BulletTypeEx.Symbol; // para.ParagraphFormat.BulletChar = Convert.ToChar(8226);
//Setting bullet color para.ParagraphFormat.BulletColorFormat.ColorType = ColorTypeEx.RGB; para.ParagraphFormat.BulletColor.Color = Color.Black; para.ParagraphFormat.IsBulletHardColor = NullableBool.True; // set IsBulletHardColor to true to use own bullet color