_Document.TextEncoding 属性

定义

返回或设置的代码页或字符集,则 Word 使用另存为编码的文本文件的文档。Returns or sets the code page, or character set, that Microsoft 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

属性值

MsoEncoding

注解

TextEncoding属性将文本编码与 HTML 编码分开设置,可以使用属性进行设置 EncodingThe TextEncoding property sets text encoding separately from HTML encoding, which you can set using the Encoding property. 若要设置保存为文本文件的所有文档的文本编码,请使用 DefaultTextEncoding 属性。To set text encoding for all documents saved as text files, use the DefaultTextEncoding property.

适用于