0

我想知道如何使用 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;
4

1 回答 1

3

尝试添加

newshape.Fill.Visible = Microsoft.Office.Core.MsoTriState.msoFalse
于 2012-05-16T10:32:28.140 回答