public void ConvertNodeToHtmlWithDefaultOptions()
{
//ExStart
//ExFor:Node.ToString(SaveFormat)
//ExSummary:Exports the content of a node to string in HTML format using default options.
Document doc = new Document(MyDir + "Document.doc");
// Extract the last paragraph in the document to convert to HTML.
Node node = doc.LastSection.Body.LastParagraph;
// When ToString is called using the SaveFormat overload then conversion is executed using default save options.
// When saving to HTML using default options the following settings are set:
// ExportImagesAsBase64 = true
// CssStyleSheetType = CssStyleSheetType.Inline
// ExportFontResources = false
string nodeAsHtml = node.ToString(SaveFormat.Html);
//ExEnd
Assert.AreEqual("<p style=\"margin-top:0pt; margin-bottom:0pt; font-size:12pt\"><span style=\"font-family:'Times New Roman'\">Hello World!</span></p>", nodeAsHtml);
}