Share via


DefaultWebOptions.AlwaysSaveInDefaultEncoding Property

Determines whether the default encoding is used when you save a Web page or plain text document, independent of the file's original encoding when opened. Read/write.

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

Syntax

'Declaration
Property AlwaysSaveInDefaultEncoding As MsoTriState
    Get
    Set
'Usage
Dim instance As DefaultWebOptions
Dim value As MsoTriState

value = instance.AlwaysSaveInDefaultEncoding

instance.AlwaysSaveInDefaultEncoding = value
MsoTriState AlwaysSaveInDefaultEncoding { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

The Encoding property can be used to set the default encoding.

The value of the AlwaysSaveInDefaultEncoding Property property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The default. The original encoding of the file is used when you save a Web page or plain text document, independent of the file's original encoding when opened.

msoTrue

The default encoding is used when you save a Web page or plain text document, independent of the file's original encoding when opened.

Examples

This example sets the encoding to the default encoding. The encoding is used when you save the document as a Web page.

Application.DefaultWebOptions.AlwaysSaveInDefaultEncoding= msoTrue

See Also

Reference

DefaultWebOptions Interface

DefaultWebOptions Members

Microsoft.Office.Interop.PowerPoint Namespace