DocumentBase.ReloadAs(MsoEncoding) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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