DefaultWebOptions Interface

Contains presentation-level attributes used by Microsoft Office PowerPoint when you save or publish a complete or partial presentation as a Web page or open a Web page.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("914934CD-5A91-11CF-8700-00AA0060263B")> _
Public Interface DefaultWebOptions
'Usage
Dim instance As DefaultWebOptions
[GuidAttribute("914934CD-5A91-11CF-8700-00AA0060263B")]
public interface DefaultWebOptions

Remarks

You can return or set attributes either at the application (global) level or at the presentation level. (Note that attribute values can be different from one presentation to another, depending on the attribute value at the time the presentation was saved.) Presentation-level attribute settings override application-level attribute settings. Application-level attributes are contained in the DefaultWebOptions object.

Examples

Use the WebOptions property to return the WebOptions object. The following example checks to see whether Portable Network Graphics (PNG) is allowed as an image format for presentation one. If PNG is allowed, it sets the text color for the outline pane to white and the background color for the outline and slide panes to black.

Set objAppWebOptions = Presentations(1).WebOptions

With objAppWebOptions

    If .AllowPNG = True Then

        .FrameColors = ppFrameColorsWhiteTextOnBlack

    End If

End With

See Also

Reference

DefaultWebOptions Members

Microsoft.Office.Interop.PowerPoint Namespace