Customized Bullet Point

When creating an informative presentation, it's often beneficial to highlight specific points for all parties involved. Paragraphs can sometimes contain too much information, making bullet points a more effective alternative. With IronPPT, you can easily and intuitively customize and add bullet points, allowing you to present and emphasize key information efficiently, streamlining the entire process and eliminating the need for manual additions.

In this code example, we will quickly demonstrate how to add a customized bullet point with an attached image within a paragraph.

5-Step Guide to Adding Customized Bullet Points

  • var style = new ParagraphStyle();
  • style.Bullet = new Bullet() { Picture = new Image("sample.png") };
  • var paragraph = new Paragraph();
  • paragraph.Style = style;
  • paragraph.AddText("Test Text");

Code Explanation

Creating a customized bullet point is a straightforward process. First, we need to initialize a new ParagraphStyle class, which will allow us to define the style for our bullet points. Next, we will create a new instance of the Bullet class. In this example, we’ll enhance the bullet point by incorporating an image, which we achieve by modifying the Picture property and assigning an image that we loaded in earlier steps.

Once we have our ParagraphStyle set up, we proceed to create a new Paragraph class. This is where we apply the ParagraphStyle we just created, complete with our image-enhanced bullet point. Finally, to wrap things up, we can add text to the paragraph using the AddText method, allowing us to fully customize our bullet point and create a visually appealing presentation.

Discover how to effectively manage slides with IronPPT in our comprehensive guide.

Talk to an Expert Five Star Trust Score Rating

Ready to Get Started?

Nuget Passed