首页 新闻 会员 周边 捐助

VSTO 对于PPT的操作问题

0
悬赏园豆:10 [待解决问题]

对于PPT的操作,在标题上添加了文本和图片,怎么让文本置于顶层,不然图片会被覆盖住!

 PowerPoint.Presentation presentation = this.Application.Presentations.Add();
            PowerPoint.CustomLayout customLayout =
                presentation.SlideMaster.CustomLayouts[PowerPoint.PpSlideLayout.ppLayoutTitle];
            PowerPoint.Slide slide = presentation.Slides.AddSlide(1, customLayout);
            string filePath = "C:\\图片1.jpg";
            PowerPoint.Shape pic;
            pic = slide.Shapes.AddPicture(filePath, Office.MsoTriState.msoFalse, Office.MsoTriState.msoTrue
                , slide.Shapes[1].Left, slide.Shapes[1].Top, slide.Shapes[1].Width, slide.Shapes[1].Height);
            pic.Height = slide.Shapes[1].Height;
            pic.Width = slide.Shapes[1].Width;
            slide.Shapes.Title.TextFrame.TextRange.Text = "123456";
            slide.Shapes.Title.TextFrame.TextRange.Font.Color.RGB = Color.Red.ToArgb();
            slide.Shapes.Title.TextFrame.TextRange.Font.Size = 52;
            slide.Shapes[2].Delete();

emyaser的主页 emyaser | 初学一级 | 园豆:194
提问于:2013-08-19 15:47
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册