Partager via


DocumentBase.SaveEncoding Property

Definition

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

public:
 property Microsoft::Office::Core::MsoEncoding SaveEncoding { Microsoft::Office::Core::MsoEncoding get(); void set(Microsoft::Office::Core::MsoEncoding value); };
public Microsoft.Office.Core.MsoEncoding SaveEncoding { get; set; }
member this.SaveEncoding : Microsoft.Office.Core.MsoEncoding with get, set
Public Property SaveEncoding As MsoEncoding

Property Value

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