Change the color of bullet

Technical support for Presentation

Moderator: iceblue support

Change the color of bullet

Postby stp_webdev » 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

Re: Change the color of bullet

Postby Betsy.jiang » 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: 1629
Joined: Tue Sep 06, 2016 8:30 am

Re: Change the color of bullet

Postby stp_webdev » 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

Re: Change the color of bullet

Postby Betsy.jiang » 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
You do not have the required permissions to view the files attached to this post.
User avatar
Betsy.jiang
 
Posts: 1629
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.Presentation

Who is online

Users browsing this forum: No registered users and 0 guests