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.

Thu Apr 27, 2017 12:36 pm

How to change just the color of bullets in ppt?

stp_webdev
 
Posts: 15
Joined: Fri Apr 21, 2017 1:40 pm

Fri Apr 28, 2017 2:25 am

Dear stp_webdev,

Thanks for your inquiry.
Here is sample code for your kind reference.
Code: Select all
shape.TextFrame.Paragraphs[0].BulletColor.Color = Color.Red;

If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon May 01, 2017 3:29 pm

I tried it, its not working. Can you please give a link where i can see the implementation

stp_webdev
 
Posts: 15
Joined: Fri Apr 21, 2017 1:40 pm

Tue May 02, 2017 2:48 am

Dear stp_webdev,

Thanks for your information.
I used the latest Spire.Presentation Pack Version:2.8 to have a test. And I attached my input and output file for checking.
Here is my entire testing code.
Code: Select all
            Presentation pptDocument = new Presentation(@"F:\bullet.pptx",FileFormat.Pptx2013);
            ISlide defaultSlide = pptDocument.Slides[0];
            IAutoShape shape = defaultSlide.Shapes[0] as IAutoShape;
            shape.TextFrame.Paragraphs[0].BulletColor.Color = Color.Red;
            pptDocument.SaveToFile("Result.pptx", FileFormat.Pptx2010);

Please provide the input file and the code you were using for testing.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation