ImageListBullet Class
A bullet that is displayed using an image.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.1.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Related API Members
The following members return ImageListBullet objects:
Remarks
The following code snippet configures an image bullet for a paragraph:
using DevExpress.Docs;
using DevExpress.Docs.Presentation;
using DevExpress.Drawing;
using System.Drawing;
namespace PresentationApiSample;
public class Program {
public static void Main(string[] _) {
Presentation presentation = new Presentation();
presentation.Slides.Clear();
Slide slide = new Slide(SlideLayoutType.Blank);
presentation.Slides.Add(slide);
Shape shape = new Shape(ShapeType.Rectangle, 30, 30, 2000, 1000);
slide.Shapes.Add(shape);
// Use an image bullet for a text paragraph
Stream stream = new FileStream(@"..\..\..\data\image.png", FileMode.Open, FileAccess.Read);
ImageListBullet i_bullet = new ImageListBullet { Image = new OfficeImage(DXImage.FromStream(stream)) };
TextParagraph paragraph2 = new TextParagraph();
paragraph2.Properties.ListBullet = i_bullet;
paragraph2.Text = "Paragraph 2";
shape.TextArea.Paragraphs.Add(paragraph2);
}
}
Implements
Inheritance
Object
PresentationObject
ListBullet
ImageListBullet
See Also