如何设置“无填充”使用PowerPoint 2010互操作填写自动形状

时间:2012-05-15 15:26:04

标签: c# ms-office powerpoint office-interop

我想知道如何设置一个新添加的矩形,使其与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;

1 个答案:

答案 0 :(得分:3)

尝试添加

newshape.Fill.Visible = Microsoft.Office.Core.MsoTriState.msoFalse