Document.TextEncoding 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 code page, or character set, that Microsoft Office Word uses for a document saved as an encoded text file.
public:
property Microsoft::Office::Core::MsoEncoding TextEncoding { Microsoft::Office::Core::MsoEncoding get(); void set(Microsoft::Office::Core::MsoEncoding value); };
public Microsoft.Office.Core.MsoEncoding TextEncoding { get; set; }
member this.TextEncoding : Microsoft.Office.Core.MsoEncoding with get, set
Public Property TextEncoding As MsoEncoding
Property Value
One of the MsoEncoding values.
Remarks
This property sets text encoding separately from HTML encoding, which you can set using the Encoding property of the WebOptions object. You can get the WebOptions object from the WebOptions property. To set text encoding for all documents saved as text files, use the DefaultTextEncoding property.