DocumentBase.SaveEncoding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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