Ορισμός Χρώματος Υποβάθρου της Διαφάνειας Μάστερ

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


 //Δημιουργία της κλάσης Presentation που αντιπροσωπεύει το αρχείο παρουσίασης

using (PresentationEx pres = new PresentationEx())

{

	//Ορίστε το χρώμα φόντου του Master ISlide σε Πράσινο δάσους

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

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

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

	//Αποθήκευση της παρουσίασης στο δίσκο

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

Λήψη Δείγματος Κώδικα