[英]How do you set a “No fill” Fill on a autoshape with the PowerPoint 2010 interop
I want to know how to set a newly added rectangle to have "No Fill" with the PowerPoint 2010 interop.我想知道如何使用 PowerPoint 2010 互操作将新添加的矩形设置为“无填充”。
this is the code I have right now...这是我现在拥有的代码...
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;
尝试添加
newshape.Fill.Visible = Microsoft.Office.Core.MsoTriState.msoFalse
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.