DocumentBase.ReloadAs(MsoEncoding) 方法

定义

使用指定的文档编码,重新加载基于 HTML 文档的文档。

public void ReloadAs (Microsoft.Office.Core.MsoEncoding encoding);

参数

encoding
MsoEncoding

MsoEncoding 值之一。

示例

下面的代码示例重新加载文档,并自动检测要使用的编码。 若要使用此示例,请从 ThisDocument 文档级项目的类中运行它。

private void DocumentReloadAs()
{
    this.ReloadAs(Office.MsoEncoding.msoEncodingAutoDetect);

}
Private Sub DocumentReloadAs()
    Me.ReloadAs(Office.MsoEncoding.msoEncodingAutoDetect)
End Sub 

适用于