Mesterdia háttérszín beállítása

VSTO


 PowerPoint.Presentation presentation =

                Globals.ThisAddIn.Application.Presentations.Open("Setting Background Color of Master Slide.ppt", Office.MsoTriState.msoFalse, Office.MsoTriState.msoFalse, Office.MsoTriState.msoTrue);

            presentation.SlideMaster.Background.Fill.ForeColor.RGB = -654262273;

Aspose.Slides


 //Példányosítsa a Presentation osztályt, amely a bemutató fájlt reprezentálja

using (PresentationEx pres = new PresentationEx())

{

	//Állítsa be a Master ISlide háttérszínét erdei zöldre

	pres.Masters[0].Background.Type = BackgroundTypeEx.OwnBackground;

	pres.Masters[0].Background.FillFormat.FillType = FillTypeEx.Solid;

	pres.Masters[0].Background.FillFormat.SolidFillColor.Color = Color.ForestGreen;

	//Mentse a bemutatót lemezre

	pres.Save("Setting Background Color of Master Slide.pptx", SaveFormat.Pptx);

Példa kód letöltése