SlidesLayoutOptions

RenderingOptions.SlidesLayoutOptions 属性

获取或设置导出演示文稿时幻灯片在页面上的放置模式 ISlidesLayoutOptions

public ISlidesLayoutOptions SlidesLayoutOptions { get; set; }

示例

示例:

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    RenderingOptions options = new RenderingOptions
    {
        SlidesLayoutOptions = new HandoutLayoutingOptions
        {
            Handout = HandoutType.Handouts4Horizontal,
            PrintSlideNumbers = false
        }
    };
    
    Bitmap[] handoutSlides = pres.GetThumbnails(options);
    for (var index = 0; index < handoutSlides.Length; index++)
    {
        var handoutSllide = handoutSlides[index];
        handoutSllide.Save($"handout-{index}.png");
    }
}

另请参阅