none
How to get bakcground and forecolor difference of power point slide RRS feed

  • Question

  • how to get foreground and background color of PowerPoint slide in C#.
    and also i want to change this through c# code..
    • Moved by Rudedog2 Friday, September 19, 2014 8:12 PM move to a more appropraite forum
    Friday, September 19, 2014 7:17 PM

Answers

  • Hello Taimoor,

    You can use the following code to get the foreground and background color values in C#:

    // background 
    ActivePresentation.Slides[1].Background.Fill.BackColor.RGB;
    
    // foreground
    ActivePresentation.Slides[1].Background.Fill.ForeColor.RGB;

    The BackColor property of the FillFormat class returns or sets a ColorFormat object that represents the background color for the specified fill or patterned line. The ForeColor property of the FillFormat class returns or sets a ColorFormat object that represents the foreground color for the fill, line, or shadow.

    Saturday, September 20, 2014 11:44 AM