Sdílet prostřednictvím


DocumentBase.ReloadAs(MsoEncoding) Method

Definition

Reloads a document based on an HTML document, using the specified document encoding.

public:
 void ReloadAs(Microsoft::Office::Core::MsoEncoding encoding);
public void ReloadAs (Microsoft.Office.Core.MsoEncoding encoding);
member this.ReloadAs : Microsoft.Office.Core.MsoEncoding -> unit
Public Sub ReloadAs (encoding As MsoEncoding)

Parameters

encoding
MsoEncoding

One of the MsoEncoding values.

Examples

The following code example reloads the document and automatically detects the encoding to use. To use this example, run it from the ThisDocument class in a document-level project..

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

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

Applies to