当前位置: 首页>>代码示例>>C#>>正文


C# PowerPointSlide.Delete方法代码示例

本文整理汇总了C#中PowerPointLabs.Models.PowerPointSlide.Delete方法的典型用法代码示例。如果您正苦于以下问题:C# PowerPointSlide.Delete方法的具体用法?C# PowerPointSlide.Delete怎么用?C# PowerPointSlide.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PowerPointLabs.Models.PowerPointSlide的用法示例。


在下文中一共展示了PowerPointSlide.Delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteSlideAndTrack

 public void DeleteSlideAndTrack(PowerPointSlide slide)
 {
     RemoveSlideWithName(slide.Name);
     slide.Delete();
 }
开发者ID:suheti,项目名称:powerpointlabs,代码行数:5,代码来源:SlideSelectionTracker.cs

示例2: ManageSlidesForReload

 private static void ManageSlidesForReload(PowerPointSlide currentSlide, PowerPointSlide nextSlide, PowerPointSlide animatedSlide)
 {
     animatedSlide.Delete();
     if (!GetMatchingShapeDetails(currentSlide, nextSlide))
     {
         System.Windows.Forms.MessageBox.Show("No matching Shapes were found on the next slide", "Animation Not Added");
         return;
     }
     AddCompleteAnimations(currentSlide, nextSlide);
 }
开发者ID:nus-fboa2016-PL,项目名称:PowerPointLabs,代码行数:10,代码来源:AutoAnimate.cs

示例3: PrepareForeground

        private static PowerPointBgEffectSlide PrepareForeground(ShapeRange oriShapeRange, ShapeRange copyShapeRange,
                                                                 Slide refSlide, PowerPointSlide newSlide)
        {
            try
            {
                // crop in the original slide and put into clipboard
                var croppedShape = MakeFrontImage(oriShapeRange);

                croppedShape.Cut();

                // swap the uncropped shapes and cropped shapes
                var pastedCrop = newSlide.Shapes.Paste();

                // calibrate pasted shapes
                pastedCrop.Left -= 12;
                pastedCrop.Top -= 12;

                // ungroup front image if necessary
                if (pastedCrop[1].Type == Core.MsoShapeType.msoGroup)
                {
                    pastedCrop[1].Ungroup();
                }

                copyShapeRange.Cut();
                oriShapeRange = refSlide.Shapes.Paste();

                oriShapeRange.Fill.ForeColor.RGB = 0xaaaaaa;
                oriShapeRange.Fill.Transparency = 0.7f;
                oriShapeRange.Line.Visible = Core.MsoTriState.msoTrue;
                oriShapeRange.Line.ForeColor.RGB = 0x000000;

                Utils.Graphics.MakeShapeViewTimeInvisible(oriShapeRange, refSlide);

                oriShapeRange.Select();

                // finally add transition to the new slide
                newSlide.Transition.EntryEffect = PpEntryEffect.ppEffectFadeSmoothly;
                newSlide.Transition.Duration = 0.5f;

                return new PowerPointBgEffectSlide(newSlide.GetNativeSlide());
            }
            catch (Exception e)
            {
                var errorMessage = CropToShape.GetErrorMessageForErrorCode(e.Message);
                errorMessage = errorMessage.Replace("Crop To Shape", "Blur/Recolor Remainder");

                newSlide.Delete();

                throw new InvalidOperationException(errorMessage);
            }
        }
开发者ID:oswellchan,项目名称:PowerPointLabs,代码行数:51,代码来源:PowerPointBgEffectSlide.cs


注:本文中的PowerPointLabs.Models.PowerPointSlide.Delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。