检查PowerPoint的CustomLayout是否有图片集
Check if PowerPoint’s CustomLayout has picture set
我正在尝试确定 PowerPoint 的自定义布局是否在背景中包含用户图片。我正在寻找与此代码等效的代码:
ActivePresentation.Designs(1).SlideMaster.CustomLayouts(1).Background.Fill.HasPicture
但显然 CustomLayouts.Background.Fill 没有像 HasPicture 属性 这样的东西。我想知道是否有人知道这个问题。
这会告诉您它是否充满图片。我不认为有办法学习图片的原始名称,但你可以强制使用 .Fill.UserPicture "full path to picture file"
If ActivePresentation.Designs(1).SlideMaster.CustomLayouts(1).Background.Fill.Type = 6 Then
MsgBox "Layout 1 has a picture fill"
End If
我正在尝试确定 PowerPoint 的自定义布局是否在背景中包含用户图片。我正在寻找与此代码等效的代码:
ActivePresentation.Designs(1).SlideMaster.CustomLayouts(1).Background.Fill.HasPicture
但显然 CustomLayouts.Background.Fill 没有像 HasPicture 属性 这样的东西。我想知道是否有人知道这个问题。
这会告诉您它是否充满图片。我不认为有办法学习图片的原始名称,但你可以强制使用 .Fill.UserPicture "full path to picture file"
If ActivePresentation.Designs(1).SlideMaster.CustomLayouts(1).Background.Fill.Type = 6 Then
MsgBox "Layout 1 has a picture fill"
End If