如何在PowerPoint中设置幻灯片背景的MirrorType / Stretch选项

时间:2011-05-11 09:44:33

标签: delphi powerpoint office-interop

我可以获取导出的背景图像,但是,当我将背景设置为平铺时,默认情况下“镜像类型”选项设置为“两者”。我想将其设置为“无”,我希望能够在Stetch选项中设置一些偏移。

我已将2010年类型库导入Delphi,但似乎无法在任何地方找到这些选项。我也试过在2010年搞乱Macros,但似乎仍然无法看到它。我尝试了一些我认为是strecth选项的选项,例如Left / IncrementLeft等,但我不断得到例外情况:

“ShapeRange(未知成员):无效请求。此操作无法应用于背景形状。”

这就是我现在正在做的事情:

    Slide.Background.Fill.UserPicture('C:\Path\To\Image.jpg')
    if DoTile Then
    begin
        Slide.Background.Fill.TextureTile := msoTrue
        // need to set Mirror type to none
    end
    else
        // need to change some of the stretch offsets

0 个答案:

没有答案