2012-05-15 22 views
0

我想知道如何將新添加的矩形設置爲「不填充」與PowerPoint 2010互操作。如何設置「無填充」使用PowerPoint 2010 interop填充自定形

這是我現在所擁有的代碼...

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; 

回答

3

嘗試添加

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