Compartilhar via


DocumentBase.SaveEncoding Property

Gets or sets the encoding to use when saving the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property SaveEncoding As MsoEncoding
public MsoEncoding SaveEncoding { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoEncoding
One of the MsoEncoding values.

Examples

The following code example specifies Western encoding for saving the document. To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentSaveEncoding()
    Me.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern
End Sub
private void DocumentSaveEncoding()
{
    this.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern;
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace