DocumentBase.SaveEncoding Property

Definition

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

public Microsoft.Office.Core.MsoEncoding SaveEncoding { get; set; }

Property Value

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 void DocumentSaveEncoding()
{
    this.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern;
}
Private Sub DocumentSaveEncoding()
    Me.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern
End Sub 

Applies to