How to acces the background color of a slide

Hi to everyone!
Does anyone knows How to access background color on a slide?

Thanks for the help,
Tair.

Hi Tair,

Try this:

var presentation = PresentationDocument.Load("input.pptx");

foreach (var slide in presentation.Slides)
{
    if (slide.Background.Fill.FillType == FillFormatType.Solid)
    {
        var solidFill = (SolidFillFormat)slide.Background.Fill;
        Console.WriteLine(solidFill.Color);
    }
}

Does this solve your issue?

Regards,
Mario

1 Like

Yes!
Thank you so much!