Skip to main content
All docs
V25.1
  • NumberingListBullet Class

    A bullet that allows you to create a numbered list.

    Namespace: DevExpress.Docs.Presentation

    Assembly: DevExpress.Docs.Presentation.v25.1.dll

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public class NumberingListBullet :
        ListBullet

    The following members return NumberingListBullet objects:

    Remarks

    The following code snippet configures numbering bullets for three text paragraphs:

    using DevExpress.Docs.Presentation;
    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, 0, 0, presentation.SlideSize.Width, presentation.SlideSize.Height);
            slide.Shapes.Add(shape);
            shape.Fill = new SolidFill(Color.White);
            shape.Outline.Fill = new SolidFill(Color.White);
            shape.TextArea.Level1ParagraphProperties.TextProperties.Fill = new SolidFill(Color.Black);
            shape.TextArea.Paragraphs.Clear();
    
            NumberingListBullet n_bullet = new NumberingListBullet(NumberingListBulletFormat.WideBlackCircledNumber, 1);
    
            TextParagraph paragraph1 = new TextParagraph();
            paragraph1.Properties.ListBullet = n_bullet;
            paragraph1.Text = "Paragraph 1";
            shape.TextArea.Paragraphs.Add(paragraph1);
    
            TextParagraph paragraph2 = new TextParagraph();
            paragraph2.Properties.ListBullet = n_bullet;
            paragraph2.Text = "Paragraph 2";
            shape.TextArea.Paragraphs.Add(paragraph2);
    
            NumberingListBullet n_bullet2 = new NumberingListBullet(NumberingListBulletFormat.DoubleByteNumberPlain, 1);
    
            TextParagraph paragraph3 = new TextParagraph();
            paragraph3.Properties.ListBullet = n_bullet2;
            paragraph3.Text = "Paragraph 3";
            shape.TextArea.Paragraphs.Add(paragraph3);
    
        }
    }
    

    Implements

    Inheritance

    See Also