_Document.TextEncoding Property
Returns or sets the code page, or character set, that Microsoft Word uses for a document saved as an encoded text file.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property TextEncoding As MsoEncoding
Get
Set
'Usage
Dim instance As _Document
Dim value As MsoEncoding
value = instance.TextEncoding
instance.TextEncoding = value
MsoEncoding TextEncoding { get; set; }
Property Value
Type: MsoEncoding
Remarks
The TextEncoding property sets text encoding separately from HTML encoding, which you can set using the Encoding property. To set text encoding for all documents saved as text files, use the DefaultTextEncoding property.