问题描述
我想在输出ppt中插入一个形状作为新幻灯片。到目前为止,我已经设法在新的空白幻灯片中插入了一个示例形状。但是它正变得如此小。如何使其与幻灯片的大小相同。
我尝试过
s.ScaleHeight(1.75f,MsoTriState.msoTrue,MsoScaleFrom.msoScaleFromMiddle);
s.ScaleWidth(1.75f,MsoTriState.msoFalse);
这是用于将幻灯片动态缩放为当前演示文稿幻灯片的1.75倍。即使我给我什么也没发生
但是它不起作用。你能帮忙吗?
pres2.Slides[pres2SlideNo].copy();
//pptfinal.Windows[1].View.GotoSlide(slideIndex);
item.FollowMasterBackground = MsoTriState.msoFalse;
//pptfinal.Slides[slideIndex].FollowMasterBackground = MsoTriState.msoTrue;
//pptfinal.Slides[slideIndex].Background.Fill.ForeColor = item.Background.Fill.ForeColor;
switch(item.Background.Fill.Type)
{
case MsoFillType.msoFillTextured:
switch (item.Background.Fill.TextureType)
{
case MsoTextureType.msoTexturePreset:
pptfinal.Slides[slideIndex].Background.Fill.PresetTextured(item.Background.Fill.PresetTexture);
break;
}
break;
}
PPT.CustomLayout customLayout1 = pptfinal.Slides[slideIndex].CustomLayout;
pptfinal.Slides.AddSlide(slideIndex,customLayout1);
PPT.Shapes shape1= pptfinal.Slides[slideIndex].Shapes;
foreach (PPT.Shape s in shape1)
{
s.ScaleHeight(1.75f,MsoScaleFrom.msoScaleFromMiddle);
s.ScaleWidth(1.75f,MsoTriState.msoFalse);
}
shape1.Paste();
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)