Impostare il colore di sfondo della diapositiva master
Contents
[
Hide
]
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
//Istanzia la classe Presentation che rappresenta il file della presentazione
using (PresentationEx pres = new PresentationEx())
{
//Imposta il colore di sfondo del Master ISlide a Verde foresta
pres.Masters[0].Background.Type = BackgroundTypeEx.OwnBackground;
pres.Masters[0].Background.FillFormat.FillType = FillTypeEx.Solid;
pres.Masters[0].Background.FillFormat.SolidFillColor.Color = Color.ForestGreen;
//Scrivi la presentazione su disco
pres.Save("Setting Background Color of Master Slide.pptx", SaveFormat.Pptx);