我想知道如何使用 PowerPoint 2010 互操作将新添加的矩形设置为“无填充”。
这是我现在的代码......
PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;
PowerPoint.Shape newshape = presentation.Slides[slideIndex].Shapes.AddShape(Office.MsoAutoShapeType.msoShapeRectangle, 72f, 72f, 72f, 72f);
newshape.Fill.Transparency = 1;