public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Text();
Presentation presentation = new Presentation();
// Accessing the first slide
ISlide slide = presentation.Slides[0];
// Instantiate the image for bullets
Image image = new Bitmap(dataDir + "bullets.png");
IPPImage ippxImage = presentation.Images.AddImage(image);
// Adding and accessing Autoshape
IAutoShape autoShape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 200, 200, 400, 200);
// Accessing the text frame of created autoshape
ITextFrame textFrame = autoShape.TextFrame;
// Removing the default exisiting paragraph
textFrame.Paragraphs.RemoveAt(0);
// Creating new paragraph
Paragraph paragraph = new Paragraph();
paragraph.Text = "Welcome to Aspose.Slides";
// Setting paragraph bullet style and image
paragraph.ParagraphFormat.Bullet.Type = BulletType.Picture;
paragraph.ParagraphFormat.Bullet.Picture.Image = ippxImage;
// Setting Bullet Height
paragraph.ParagraphFormat.Bullet.Height = 100;
// Adding Paragraph to text frame
textFrame.Paragraphs.Add(paragraph);
// Writing the presentation as a PPTX file
presentation.Save(dataDir + "ParagraphPictureBulletsPPTX_out.pptx", SaveFormat.Pptx);
// Writing the presentation as a PPT file
presentation.Save(dataDir + "ParagraphPictureBulletsPPT_out.ppt", SaveFormat.Ppt);
}
}