我想知道如何设置一个新添加的矩形,使其与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;
答案 0 :(得分:3)
尝试添加
newshape.Fill.Visible = Microsoft.Office.Core.MsoTriState.msoFalse