Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Mon Jun 03, 2024 10:50 am

Is it possible to set the symbol type for a bulletpoint? If so, what property does this?

symbol type:
"filled_circle",
"hollow_circle",
"filled_square",
"hollow_square",
"star",
"arrow",
"triangle"

Screenshot 2024-06-03 114811.png

majeed_s
 
Posts: 80
Joined: Thu Mar 25, 2021 4:13 pm

Tue Jun 04, 2024 3:11 am

Hello,

Thanks for your inquiry.
Kindly note that the bullet point is actually a "Symbol" composed of a font and a character code. If you want to implement the "filled_circle" bullet, you can refer to the following code snippet. Other effects can be achieved in a similar way. If you have any further questions, please feel free to write to us.
Code: Select all
Presentation presentation = new Presentation();
presentation.LoadFromFile("Bullets.pptx");
IAutoShape shape = (IAutoShape)presentation.Slides[0].Shapes[1];
foreach (TextParagraph para in shape.TextFrame.Paragraphs)
{
    //Add the bullets
    para.BulletType = TextBulletType.Symbol;
    para.BulletChar = Convert.ToChar(158);
    TextFont textFont = new TextFont("Wingdings");
    para.BulletFont = textFont;
}

//Save the document and launch
presentation.SaveToFile("bullets.pptx", FileFormat.Pptx2010);


Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Presentation