마스터 슬라이드 배경색 설정

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())

{

	//마스터 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);

샘플 코드 다운로드