Export (0) Print
Expand All
Expand Minimize

_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)

MsoEncoding TextEncoding { get; set; }

Property Value

Type: MsoEncoding

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.

Community Additions

ADD
Show:
© 2014 Microsoft